Don't disconnect the socket.

It'll happen automatically, as the asynchronous connection thread will be killed when the process exits. 1.8.7 likes to fire off an exception when the connection gets closed, and because it's in a thread I don't have access to, I can't catch it.