So long as a district has no debt outstanding the board of a district may terminate and dissolve the district as of a certain date; and on such date all property, rights, and obligations of the district shall devolve to Sumter County, unless the district shall lie wholly within an incorporated area, in which case the property rights and obligations of the district shall devolve to the municipality in which the district shall lie.