On resigning as a moral act

What pushes an individual to maintain a public office against multiple failures and scandals that accompany their work?