qemu: hotplug: Don't save status XML when monitor is closed
qemu: hotplug: Don't save status XML when monitor is closed

In the vcpu hotplug code if exit from the monitor failed we would still
attempt to save the status XML. When the daemon is terminated the
monitor socket is closed. In such case, the written status XML would not
contain the monitor path and thus be invalid.

Avoid this issue by only saving status XML on success of the monitor
command.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1439452

VenkatDatta/libvirt,andreabolognani/libvirt,nertpinx/libvirt,zippy2/libvirt,eskultety/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,datto/libvirt,nertpinx/libvirt,jfehlig/libvirt,datto/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,libvirt/libvirt,datto/libvirt,VenkatDatta/libvirt,olafhering/libvirt,fabianfreyer/libvirt,zippy2/libvirt,crobinso/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,olafhering/libvirt,crobinso/libvirt,nertpinx/libvirt,andreabolognani/libvirt,eskultety/libvirt,olafhering/libvirt,libvirt/libvirt,jardasgit/libvirt,libvirt/libvirt,eskultety/libvirt,jfehlig/libvirt,zippy2/libvirt,andreabolognani/libvirt,datto/libvirt,olafhering/libvirt,fabianfreyer/libvirt,libvirt/libvirt,crobinso/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,eskultety/libvirt,eskultety/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,crobinso/libvirt,jardasgit/libvirt,jardasgit/libvirt,zippy2/libvirt,nertpinx/libvirt,jardasgit/libvirt,datto/libvirt