actually, if that's an MDI application and suppose some exception or you want to quit

so you can use

Environment.Exit(0);

also