If a member ceases to be a firefighter except by death or retirement, the firefighter shall be paid on demand the amount of his or her accumulated contributions standing to the credit of his or her individual account in the members’ savings fund, and such a member who has left his or her contributions with the system may later withdraw his or her accumulated contributions at any time prior to the beginning of his or her retirement benefits.