public void close() {
        if(TCPServerManager != null)
        {
            TCPServerManager.close();
        }
        
        if(tcpClient != null)
        {
            tcpClient.close();
        }
    }