Better error handling when user is not connected to the internet.