Added backtrace to exception handling