Closes the record and index files.

def close(self):
        """Closes the record and index files."""
        if not self.is_open:
            return
        super(IndexCreator, self).close()
        self.fidx.close()