The CEO of the Massachusetts Society of Certified Public Accountants will retire at the end of the year, with the group’s vice president slated to become the new head.