catch SystemExit to quit