Function
Shell
val exit: int -> unit
exit status -> ()
()
When running MLWorks in TTY mode, exit kills MLWorks, returning exit status status.
When running a GUI listener, exit simply destroys the listener, without killing MLWorks.
See also the Standard ML Basis function OS.Process.exit.