Made tracebacks customizable via exception-provided hook.