Part of bzrlib
On Unix, this is hooked into SIGQUIT (C-), and on Windows, this is hooked into SIGBREAK (C-Pause).