On main window close Environment.Exit(0) now invoked.