code: def handleResponseEnd(self):
          
          try:
              if not self._finished:
                  reactor.callInThread(
                      self.resource.cacheContent,
                      self.father,
                      self._response,
                      self.buffer
                  )
              proxy.ProxyClient.handleResponseEnd(self)
          except RuntimeError:
              # because we don't care if the user hits
              # refresh before the request is done
              pass
docs: Extends handleResponseEnd to not care about the user closing/refreshing
          their browser before the response is finished. Also calls cacheContent
          in a thread that we don't care when it finishes.