Fix the prompt exit code printing