try to fix socket closing and down to two thread in client and server