Avoid using negative integer exit codes
Ubuntu and Centos shows odd behavior when using negative integer exit codes. For example, -7 is changed to 249, as shown in this build job: https://gitlab.com/OpenTAP/opentap/-/jobs/1107021962
https://www.1f433.net/notes/dotnet-core-console-exit-code-compatibility-problem/