(exit [v]) passes v on to the current exit handler (see exit-handler in section 9.4.1.14). The default value for v is 0. If the exit handler does not escape or terminate the thread, void is returned.
The default exit handler quits MzScheme, using its argument as the exit code if it is a fixnum, 0 otherwise. The default exit handler in MrEd exits the application on the next event cycle.