Fixing unreachable exit code