Call socketDisconnected() from socketStateChanged()