Call sys.exit if we catch an exception