Basic Control FunctionsBasic Control Functions Exit script (os.exit) Restart script (os.restart) Run code when the script is terminated