Better error-handling for wgp-copyfiles