code: public void reset() {
          if (null != hazelcastInstance) {
              synchronized (mutex) {
                  if (null == hazelcastInstance) {
                      hazelcastInstance.shutdown();
                      hazelcastInstance = null;
                  }
              }
          }
          if (!stores.isEmpty()) {
              synchronized (mutex) {
                  stores.clear();
              }
          }
      }
docs: Shut down the Hazelcast instance and clear stores references.