def close(self):
        """
        Unload all chunks and close all open filehandles. Discard any unsaved data.
        """
        self.unload()
        try:
            self.checkSessionLock()
            shutil.rmtree(self.unsavedWorkFolder.filename, True)
            shutil.rmtree(self.fileEditsFolder.filename, True)
        except SessionLockLost:
            pass

        Unload all chunks and close all open filehandles. Discard any unsaved data.
        
pymclevel/infiniteworld.py