''

def close(self):

    if self.consoleInst:
        self.consoleInst.close()
    self.consoleInst = None
    if self.wsInst:
        self.wsInst.close()
    self.wsInst = None
    self.host = ''
    self.port = 0
