segfault fix: if CANCEL is unmatched