[mongo] check if the connection has been dropped and reconnect if needed