#749 - improve exception logging with stacktraces