Treat closing the capture dialog as Cancel

The progress dialog has a close button, and Escape closes it too. Either
left the capture running, and its cleanup then popped whatever route was
on top: the editor. Closing the dialog any way now cancels the capture,
and the cleanup pops the dialog only if it is still open. A test closes
it with its X and finds the editor still there and no files written; it
fails with the unconditional pop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3f7490a9d1Dara Adedeji committed on 10/19/2026, 4:10:12 AMparent67566b2
2 files changedLine totals unavailable