[libvirt] [PATCHv2 3/4] command: check for fork error before closing fd