[libvirt] [PATCH 3/3] avoid closing fd more than once when running command fails