Fix shell exit code.