US stock market closes with losses as volatility soars