Wait for mongo to finish restarting before creating sample data.