nuke.scriptExit

nuke.scriptExit()

Exit Nuke.