async onRequestFailed(pollyRequest, error) {
    const { aborted } = pollyRequest;

    error = error || new PollyError('Request failed due to an unknown error.');

    try {
      if (aborted) {
        await pollyRequest._emit('abort');
      } else {
        await pollyRequest._emit('error', error);
      }

      await this.onRespond(pollyRequest, error);
    } finally {
      pollyRequest.promise.reject(error);
    }
  }
@param {PollyRequest} pollyRequest
@param {Error} [error]