[XrdCl] Make CopyProcess check the error code on target close