Add stack trace to console output when failed to copy