check exit_status and then exit else continue