If the surviving partner or partners commit waste, or if it appears to the court that it is for the best interest of the estate of the decedent, such court may, after a hearing, order the surviving partner or partners to give security for the faithful settlement of the partnership affairs and the payment to the personal representative of any amount due the estate.