Stock market logs second straight weekly loss; financials, insurers lift market off lows