socket clients disconnect fix