fixed the unusual error that when flavor/image was deleted while the running vms are still using them