fix socket won't disconnect.