code: def close(self):
          
          uwsgi.disconnect()
          if self._req_ctx is None:
              # better kill it here in case wait() is not called again
              self._select_greenlet.kill()
              self._event.set()
docs: Disconnects uWSGI from the client.