Exit with sys.exit() instead of exit().