FactoriesImporter closes FactoryLocator instead of MailboxFactory on error