updated exception logging.