use SystemExit to get the agent to quit