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