Whenever all that is due upon all obligations and interest thereon which are a charge, lien, or encumbrance on the revenues of the district has been paid and all defaults have been cured and made good, the court, after such notice and hearing as it deems reasonable and proper, shall direct the receiver to surrender jurisdiction over the affairs of the district.