Save code for printing exit code on error.