Any person who after an opportunity to be heard is found by the commissioner to have violated any of the provisions of KRS 241.100, or acted as county administrator in violation of subsection (1) of KRS 241.120, or acted as city administrator or a city employee in violation of subsection (3) of KRS 241.170, or acted as an urban-county administrator in violation of KRS 241.230, shall automatically vacate his office or position, and upon conviction by a court, he shall be guilty of a Class D felony.