Add exception logger.