fix close client socket