[libvirt] [PATCH v2] replace last instances of close()