Particle Cloud Connectivity Issue

I’m using a Particle M-SoM running Device OS 6.3.3. My device is in a location that does not have cell service, but does have WiFi available. When the device first started, the WiFi network was available and operational. After a day, I unplugged the WiFi network, but left the M-SoM running. Obviously, during the 3 days the WiFi network was unavailable, the M-SoM could not connect to the cloud. However, after 3 days I plugged the WiFi network back in, and the M-SoM successfully connected to WiFi again. However, it was unable to connect to the Particle cloud and all my HTTP server requests failed too. I plugged in a USB cable to the M-SoM and got the following logs multiple times:

0328885985 [system] INFO: Cloud: connecting
0328886008 [system] INFO: Read Server Address = type:1,domain:$id.udp.particle.io
0328886051 [system] WARN: Failed to load session data from persistent storage
0328886086 [system] INFO: Discarding session data
0328886141 [system] ERROR: Failed to determine server address
0328886164 [system] WARN: Cloud socket connection failed: -230
0328886228 [system] ERROR: Failed to determine server address
0328886253 [system] WARN: Internet test failed: -170 DNS
0328886282 [system] WARN: Handling cloud error: 2

I let the device try to connect for 15-20 minutes before power cycling it. Power cycling did fix the issue which is fine in my testing environment, but my concern is if I ship a device to customer who places it in the middle of nowhere with no one to power cycle it, I could be left high and dry. Is there any way to prevent this from happening? I’d prefer to not have to restart the device to fix this –either manually or in code. Thanks in advance for the help.

It would be helpful to get significantly more logs. The device should have switched to cellular during the time that it was not connected to Wi-Fi. The logs would indicate why that did not happen. In the bit of log included, it looks like DNS is not working over Wi-Fi, but it's not possible to tell why from the log.