private void handleException(String message, Exception exception) {
    boolean unexpected = !quitting();

    // If this was a surprise, print a warning.
    if (unexpected && !(exception instanceof CancelException)) {
      logger.warn(String.format("%s : %s : %s",
          this, message, exception), exception);
    }
    // We can't shutdown the client updater just because of an exception.
    // Let the caller decide if we should continue running or not.
  }
Conditionally print a warning describing the failure
<p>
Signals run thread to stop. Messages are not printed if the thread or the distributed system
has already been instructed to terminate.

@param message contextual string for the failure
@param exception underlying exception
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/CacheClientUpdater.java