Election officials step down rather than face a hostile public