/// <summary> /// Close connection /// </summary> public void CloseConnection() { // Release the socket. Client.Shutdown(SocketShutdown.Both); Client.Close(); }