Maziarz corruption case ends with misdemeanor plea