The internet connection could go off while the app is open, even if the user did not turn on/off the WIFI/Mobile internet.
It would be nice to have a timer that will periodically check the internet connection (I would do it every 10 seconds by default).