After being down as much at 2.9% earlier, the S&P 500 closed 1.4% higher. The Dow lost 1% and the Nasdaq dropped 2.2%.