changed vm destroy condition