NEW YORK – The stock market closed out a painful second quarter Wednesday and left investors with heavy losses and far more doubts about the economy than they had just months ago.

Stocks had their worst quarterly performance since the financial crisis. The Standard & Poor’s 500 index, considered by many professional investors to be the best measure of the market’s health, lost 11.9 percent, while the Dow Jones industrial average lost 10 percent. Both indexes are at their lows for 2010.

On Wednesday, the Dow fell 96.28, or 1 percent, to 9,774.02. The S&P 500 fell 10.53, or 1 percent, to 1,030.71, while the Nasdaq composite index fell 25.94, or 1.2 percent, to 2,109.24.

Meanwhile, Treasury notes and bonds soared during the quarter, driving interest rates sharply lower, as investors turning away from stocks sought a place where their money would be safe.