Add condition to undefine virt domain