fix exit code

verbal lgtm from @eleith