Use SystemExit and send a quit message.