Fix exception handler logging.