WL-2653 Add exception logging.