(b) Settlement of account. When such account has been filed, the court, upon sufficient notice, shall order all persons interested in the proceedings to attend a settlement of the account at a time and place specified, and such settlement shall be made and the rights and liabilities of all parties to the proceeding shall be determined and enforced. After settlement of the account, the court shall make an order relieving the surety from any act or omission of the fiduciary subsequent to the date of such order or the time when a new undertaking satisfactory to the court was filed, whichever is earlier. Upon written demand by the fiduciary, the surety shall return any compensation paid for the unexpired portion of such suretyship.