If the district has debt when it is dissolved, the district shall remain in existence solely for the purpose of discharging its bonds or other obligations according to their terms.