add comment for socket.close