GitHub #194: Exception logging improvements