Now logging caught exceptions.