[libvirt] PATCH: Misc error handling / OOM fixes