gold futures log a loss of nearly $24 an ounce