virt: Add timeout and gracefunlly or kill_vm_before_test

Now timeout and gracefunlly work for both kill_vm_before_test and kill_vm

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>