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.