Add internet access check

Proper error messages are now shown when the user is offline and internet access is required