added exit status to call to check_exit_status