os.exit ([code])
Calls the C function exit, with an optional code, to terminate the host program. The default value for code is the success code.
exit
code