Stocks close higher on hopes worst of virus has passed