Use SystemExit instead of os._exit.