This will send a quit message to the thread that the networking components are running on.
Under Windows, this is a WM_QUIT message. All the networking components must be created on a single thread with a running message loop. For more information, see the RunMessageLoop method.