catch logging exception