Let's hope closing the socket wakes up the other thread.