Better exit code handling.