Fixed bug with exception trace not shown in logs.