[libvirt] [PATCH] qemu: Rework handling of shutdown event