In fact, step (2) exist:

`if vm.is_persistent() and vm.is_alive():`
`    vm.destroy()`