Adding backtrace printing to main exception handler.