gold closes higher to recoup some recent losses