def close(self):
        """ .. todo:: REPO.close docstring
        """

        # Imports
        import h5py as h5
        from ..error import RepoError

        # Close the repo if it's bound, and wipe link; else complain
        if self._repo != None:
            self._repo.close()
            self._repo = None
            # Leave self.fname defined for potential easy re-opening later on.
        else:
            raise RepoError(RepoError.STATUS,
                    "Cannot close; no repository open",
                    "Last repo: {0}".format(self.fname))