attempt to handle reconnect event

sometimes disconnect event doesn’t fire when wifi goes on/off, so
attempt to reset socket data in this situation