I could be mistaken, but I'm not sure if <code>wait_for_login()</code> checks <code>vm.is_alive()</code> or not.