There are different ways of application exit, better to use Application.Terminate() method, according to MSDN "The Terminate method does not raise any application lifecycle events. Before you call this method, you must save the state of the app."read more about closing methods herehttps://msdn.microsoft.com/en-us/library/windows/apps/dn148258(v=vs.105).aspx#BKMK_bestThanksKoolprasd2003Editor, DotNetSpider MVMMicrosoft MVP 2014 [ASP.NET/IIS]