It was the scariest day on Wall Street in years.