When the improvements of a district have been completed and paid for, and all costs and expenses of the district paid, if there remains on hand to the credit of such district any funds not needed, the county commission may prorate back to the taxpayers all or any part of such funds not needed or may use the same for maintenance in lieu of the maintenance taxes.