mitmproxy/mitmproxy — pull request #343 by deployable (2014-09-04 10:20:38+00:00)
Title: Add urwid stop prior to exception output so stack trace is not cleared

mitmproxy outputs into the "alternate" buffer via `urwid`
`urwid` clears the screen and reverts to the original buffer in it's final cleanup after a stack trace is printed. https://github.com/mitmproxy/mitmproxy/issues/330

This change finalises `urwid` before the stack trace.