'Close the SocketIO object.  This doesn\'t close the underlying
socket, except if all references to it have disappeared.'

def close(self):

    if self.closed:
        return
    io.RawIOBase.close(self)
    self._sock._decref_socketios()
    self._sock = None
