properly close the libvirt connection