SEH improvements

and make backtrace iff in_ctx.