gold closes at 6-month high