Correct exit code handling.