public void Close() { Connected = false; if (sysSocket != null) { sysSocket.Close(); sysSocket = null; } receiveBuffer.Dispose(); sendBuffer.Dispose(); receiveBuffer = null; sendBuffer = null; }