script: fix special exit types