A member may designate someone, whether related to him or not, who would be entitled to a refund of the amount he has paid into the pension fund if such member should die before retirement, and in the event he does not name a person to whom a refund is to be made, such refund shall be made to his estate. In the event that a member dies after retirement, and either before or after receiving retirement payments, the named beneficiary, or the member's estate in the absence of a named beneficiary, shall receive a refund in an amount equal to the amount such member paid into said pension fund less the total amount received by such member or beneficiary in retirement benefits.