Fixes exit codes.