[libvirt] [PATCH] Make sure that filedescriptors are only closed once