private void endVolunteering() {
      if (Thread.currentThread().equals(volunteeringThread)) {
        volunteeringThread = null;
        aggressive = false;
      }
    }
Called from catch blocks in {@link #doVolunteerForPrimary()}. Handles the exception properly
based on advisor settings and shutdown condition.

@param e the RuntimeException that was caught while volunteering
@param loggit true if message should be logged if shutdown condition is not met
geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java