A coworker mentioned that programs should return internal state information using codes < 0, but I have not fact checked that.