Added exception output to logging of some events.