private static void closeGateWayReceiverServers(GemFireCacheImpl cache) {
    InternalCacheServer receiverServer = cache.gatewayReceiverServer.get();
    if (receiverServer != null) {
      Acceptor acceptor = receiverServer.getAcceptor();
      if (acceptor != null) {
        acceptor.emergencyClose();
      }
    }
  }
Close the distributed system, cache servers, and gateways. Clears the rootRegions and
partitionedRegions map. Marks the cache as closed.

@see SystemFailure#emergencyClose()
geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java