[libvirt] Some close/fclose/closedir calls are missing