Wait for Mongo to be available after restarting