Establish a libvirt connection when storage is attached, and tear it down when all storage is detached.