Catching SystemExit exceptions