update close socket