The surety or representatives of any surety, upon the bond of any trustees, committee, guardian, assignees, receiver, executor or administrator or other fiduciary, may apply by petition to the court wherein the bond is filed or which may have jurisdiction of such trustee, committee, guardian, assignee, receiver, executor or administrator or other fiduciary or to a judge of the court, praying to be relieved from further liability as such surety for the acts or omissions of the trustee, committee, guardian, assignee, receiver, executor or administrator or other fiduciary, which may occur after the date of the order relieving such surety, to be granted as herein provided for; and to require such trustee, committee, guardian, receiver, assignee, executor or administrator or other fiduciary to show cause why he or she should not account, and such surety to be relieved from any such further liability as aforesaid, and such principal be required to give a new bond. Thereupon, upon the filing of such petition, the court or judge thereof shall issue such order, returnable at such time and place and to be served in such manner, as such court or judge may direct, and may restrain such trustee, committee, guardian, assignee, receiver, executor or administrator or other fiduciary from acting except in such manner as it may direct to preserve the trust estate, and, upon the return of such order to show cause, if the principal in the bond account in due form of law and file a new bond duly approved, then such court or judge shall make an order releasing such surety filing the petition from liability upon the bond for any subsequent act or default of the principal; and in default of such principal thus accounting and filing such bond, such court or judge shall make an order directing such trustee, committee, guardian, assignee, receiver, executor or administrator, or other fiduciary to account in due form of law, and, if the trust fund or estate shall be satisfactorily accounted for and delivered or properly secured, such surety shall be discharged from any and all further liability as such for the subsequent acts or omissions of the trustee, guardian, committee, assignee, receiver, executor or administrator or other fiduciary after the day of such surety being so relieved and discharged.