public void Dispose() { if(isStarted) { Stop(); } multicastSocket.Shutdown(SocketShutdown.Both); multicastSocket = null; }