Fixed bug in MongoGateway where in the case of an IOException, the socket is closed, but the authenticator cache is not reset.
FindBugs warning fixed: Load of known null value in org.mongodb.impl.MongoCollectionImpl$MongoCollectionStream$2$1.onResult(QueryResult, MongoException)