add backtrace to error logging