Arduino Uno WiFi Rev2 hangs if WiFi connection disrupted

You're welcome! Glad to hear that the fix in 1.2.2 resolved your problem!