Indexes open lower on last day of year