Now sys.exit(0) is silently accepted, while quit() / raise SystemExit / sys.exit() / sys.exit(n) / exit() will output sth a warning such as "Script terminated by SystemExit -1" Still, don't call os._exit(0), it immediately exits.