/*
* TRICK: destroy vm with unaccessible disks will throw exceptions, ignore
* it and destroy it again.
*/
try {
vm.destroy(false);
} catch (Exception e) {
logger.warn("failed to delete vm " + vm.getName() + " as "
+ e.getMessage());
logger.info("try to unregister it again");
vm.unregister();