System.Environment.Exit(0); // or Environment.Exit(0);
System.Envrionment.Exit(0); //or Envrionment.Exit(0);