Can you check how to enable the auto-reconnection of the Mongo client in case the connection to the server gets lost?