exit in advance if exit code is abnormal