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

    if (options.shutdown) {
      await this._doShutdown(udid);
      await this._deviceRegistry.unregisterDevice(udid);
    } else {
      await this._deviceRegistry.releaseDevice(udid);
    }
  }
@param cookie { IosSimulatorCookie }
@param options { DeallocOptions }
@return {Promise<void>}