add sys.exit() to exceptions