vm.turnOffFT();
}
// try guest shut down first, wait for 3 minutes, power it off after time out
if (vm.isPoweredOn()
&& !vm.shutdownGuest(Constants.VM_FAST_SHUTDOWN_WAITING_SEC * 1000)) {
vm.powerOff();
}
/*
* TRICK: destroy vm with unaccessible disks will throw exceptions, ignore
* it and destroy it again.