run_external_diff: clean up error handling