Is not closing the socket on exit intentional?