better handle the new TS exit codes