public static void Shutdown()
        {
            if (!serviceInitialized)
            {
                return;
            }

#if ENABLE_MULTICAST
            Multicast.Shutdown();
#endif
            Disconnect();

            ShutdownMessageStreamManager();

            receiveStream.Free();
            PlatformShutdown();

            serviceInitialized = false;
        }