[libvirt] [PATCH v2] qemu: agent: Avoid agentError when closing the QEMU agent