dom0: close Popen when the transfer is complete