Gold futures closed lower on Monday as investors mulled the possibility of a U.S. government shutdown and its impact on demand for the precious metal, but prices have gained more than 8% since the end of June — their first quarterly gain in a year.