async free(cookie, options = {}) {
    const { adbName } = cookie;

    if (options.shutdown) {
      await this._doShutdown(adbName);
      await this._deviceRegistry.unregisterDevice(adbName);
    } else {
      await this._deviceRegistry.releaseDevice(adbName);
    }
  }
@param cookie {AndroidDeviceCookie}
@param options {Partial<import('../../AllocationDriverBase').DeallocOptions>}
@return {Promise<void>}