Log caught exceptions