code: private void gc() {
      if ((services != null && services.isConnected()) && debugger != null) {
        debugger.releaseObjects();
      }
      objectIds.clear();
    }
docs: Releases protected ECMAScript objects to make them garbage collectible.  Released objects are
  not necessarily freed immediately.  Releasing objects invalidates associated object ID's
  immediately.