gold closes up as traders mull safe-haven appeal