(b) a written agreement of the employer and the members, former members and other persons entitled to payments on the date of the wind up is made in accordance with such conditions as may be prescribed and authorizes payment of surplus to the employer.