also explicitly close socket.