socket disconnect bug