quit game if no internet access on android

I have admob ads in my game but i am not earning revenue because the game can be played without internet connection so what i would like is for the game to not run if no internet connection! i have added the users-permission to the manifest and also ticked the require internet box on the build but still the game plays without internet! greatly appreciate some help thank you in advance.

//Display message