close socket debug