Removed unused MongoSessionFactory
Closing the connector after removing it from the thread local, so that even if it throws an exception the connector is un-pinned from the thread