The Dow gave up the gains in the final hour.