Only wait for mongodb when it's just been started