I don't think that this is sane. Each platform has weird exit codes that are all packed in various manners to do this. I think that in this case it's fine to just set the exit status to something explicitly not 0.