public static void stopElementInsideVM() {
    if (memberStarter != null) {
      memberStarter.setCleanWorkingDir(false);
      memberStarter.after();
      memberStarter = null;
    }
    if (clientCacheRule != null) {
      clientCacheRule.after();
      clientCacheRule = null;
    }
  }
gracefully stop the member/client inside this vm

if this vm is a server/locator, it stops them and cleans the working dir if this vm is a
client, it closes the client cache.

@param index vm index
geode-dunit/src/main/java/org/apache/geode/test/dunit/rules/ClusterStartupRule.java