embd: improved vm status handling