Include exception information in JSON logging output. Contributed by @Fizzadar at Beeper.