Mongo Conection exception handling