Added close method to FactoryLocator