Echo correct exit code