Whenever any corporation or person licensed under the provisions of this act shall desire to discontinue with this Commonwealth the business of the nature hereinbefore set forth and described, it may make application by petition to the court, setting forth its resources and liabilities within and without this Commonwealth, and particularly an itemized and complete list of the holders or owners of the outstanding contracts issued by such corporation or person, together with the last known address of such holders or owners, and, in each case, the total amount of the liability of such corporation or person thereon, if any, and thereupon the said court, after due hearing, of which the commission shall have such notice as the court may determine, may make such order as will permit the withdrawal of said cash or bonds deposited with the commission, or a part thereof, and will, at the same time, fully protect the rights of all persons owning or holding the contracts issued by such corporation or person.
7 P.S. § 6059