Wait for the VM's final shutdown