Exit[ ] terminates a Mathematica session.
Exit is a synonym for Quit.
Exit terminates the session even if called from within Dialog.
On some computer systems, Exit[n] can be used to pass the integer exit code n to the operating system.
See The Mathematica Book: Section 2.13.1 and Section A.7.5.
See also: Return, $IgnoreEOF.