Correct exit code on fatal error