At any time funds are on hand for the purpose, an association may redeem, by lot or otherwise as determined by the board of directors, all or any part of any of its savings accounts on a dividend date by giving thirty days’ notice by mail addressed to each affected account holder at his last address of record on the books of the association. No association shall redeem any of its savings accounts when the association is subject to receivership action or when it has applications for withdrawal which have been on file for more than thirty days and have not been reached for payment. The redemption price of savings accounts redeemed shall be the withdrawal value thereof. If the notice of redemption has been given, and if, on or before the redemption date, the funds necessary for the redemption have been set aside and continue to be available, dividends upon the accounts called for redemption shall cease to accrue from the dividend date specified as the redemption date, and all rights with respect to such accounts shall terminate after the redemption date except the right of the account holder of record to receive the redemption price.