Be more explicit about closing the socket