Sheriff Myers will leave office after charges filed