closing the application with Environment.Exit(0)