I created a VB.NET windows service. In the OnStart I call a function CheckSettings() that checks if all the data is in place and files are found. If not, the function returns a false. I want to stop, end, terminate, kill the service if CheckSettings returns a false. How do I do it? I do have a timer which I set to false but it just keeps running and running. I tried calling the OnStop method and that does not do it either. Any help would be greatly appreciated.