If a pension is canceled, there shall be immediately paid to the pensioner out of the fund the amount of his accumulated contributions as of the date of his retirement and all interest credited to his account, less an amount equal to one-half of the pension payments made to him during the period of his retirement.