avoid close socket duplicate