@Override
    public void close() {
      if (launcher.status().getStatus() == AbstractLauncher.Status.ONLINE) {
        CacheFactory.getAnyInstance().close();
      }

      final Path pidFile = Paths.get(launcher.getWorkingDirectory()).resolve("vf.gf.server.pid");
      launcher.stop();

      if (Files.exists(pidFile)) {
        // delete PID file. Otherwise ("next") geode instance complains about existing process
        try {
          Files.delete(pidFile);
        } catch (IOException e) {
          throw new UncheckedIOException(e);
        }
      }
    }
Returns current cache instance which was initialized for tests.
@throws IllegalStateException if server process didn't start
criteria/geode/test/org/immutables/criteria/geode/GeodeExtension.java