'Shutdown the TCP server.'

def tearDown(self):

    try:
        self.tcpserver.abort = True
        del self.tcpserver
        self.root_logger.removeHandler(self.sock_hdlr)
        self.sock_hdlr.close()
        for thread in self.threads:
            thread.join(2.0)
    finally:
        BaseTest.tearDown(self)
