Close the application if internet connection is lost
<p>I want to check the internet connection constantly and close the app with a warning message if connection is lost. How can i manage to do that?</p>
