gold futures pare losses at close