Sockets close upon exit