utils.debug.trace_lines: Stop tracing if sys is None
utils.debug.trace_lines: Improve output
Stop tab loading before removing.
Remove eventfilter on shutdown