#. it is possible that the applet was destroyed during the time it
#. took to update the model. If the applet is gone, bail now.
#.
#. Detection and handling of network related errors, the
#. server may be unreachable, or refusing connections, quite
#. common in case of laptops. If such an error is detected
#. the applet will try to retry the connections after a timeout
#. of NETWORK_RETRY_INTERVAL seconds (one minute)
#. until it suceeeds reaching the server and then exit the
#. DISCONNECTED state
#.
#. print "is_network_error: '%s'" % (msg)