add guard for waiting VM from rebooting