After all of its territory has been included in one or more cities, and the district has been dissolved, upon the expenditure of its funds and the discharge of the district’s obligations by the city or cities, the powers and duties of the city or cities set forth in Sections 19271, 19272, and 19273 shall terminate.