Automatically try to re-connect to MongoDB every 5 seconds in case of connection.error