Stock benchmarks closed out the week lower, but the Nasdaq Composite booked a weekly gain as rising COVID-19 cases fan doubts about the economic recovery, offset partly by optimism over vaccines prospects.