Implemented RepositoryManager[Factory].close() with appropriate
listeners.