libvirt.tests: Shutdown vm gracefully for safe.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>