Also trace the CANCEL requests in case we're doing trace_dialog()
(cherry picked from commit 50463f044c5bd42eb5485cac52419a8ec45ee201)