[libvirt] [PATCH] qemu: Make sure BeginJob is always followed by EndJob