todo
all read hendler do socket close when necessary
sleep before thread good stoping detection
update
update