add exit status judge