(a) The mayor and council may remove the city manager at any time by a majority vote adopting a resolution to that effect. The city manager may, within ten days after notice of adoption of such resolution, reply in writing and may request a public hearing, which shall be held not earlier than 20 days nor later than 30 days after the filing of such request. The action of the mayor and council in removing the city manager, however, shall be final. Upon his or her removal as herein provided, the city manager shall be paid severance pay as may be negotiated between mayor and council and the city manager, but under no circumstances shall it exceed a total of six months of his or her annual salary. (b) When there shall be a vacancy in the office of city manager, the duties and functions of city manager shall be discharged by the mayor and council.