@Override
  public void close() {
    // ok, so BucketRegion extends DistributedRegion which calls close on the
    // advisor, BUT the ProxyBucketRegion truly owns the advisor and only it
    // should be able to close the advisor...
    //
    // if a BucketRegion closes, it will call this method and we want to change
    // our state to NOT_HOSTING
    //
    // see this.closeAdvisor()
    setHosting(false);
  }
Sets hosting to false and returns without closing. Calling closeAdvisor will actually close
this advisor.
geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java