Added explicit error logging for exceptions caused while copying.