add tolerant logic for exception.