raise SystemExit instead of exit() (or os._exit())