[libvirt] [PATCH] command: avoid double close bugs