onSocketDisconnect bug