Set exit code when issues are detected