Add logging of all caught exceptions