Arduino Uno WiFi Rev2 hangs if WiFi connection disrupted

The Arduino IDE doesn't have the capability of updating itself with a new NINA firmware version, but if you use the Hourly Build, the 1.2.2 version is certainly there in the handy menus.