Logging exceptions when handled so they aren't completely squashed.