Arduino Uno WiFi Rev2 hangs if WiFi connection disrupted

@dachurchill, please do not cross-post. Other thread removed.