fix client won't disconnect.