Yeah, maybe Something like Harvey Dent from The Dark Knight, where we have kill him and keep his fall from grace a secret. If the City found out what has become of their hero, their moral would be devastated.
"Die a hero... or live long enough to become the villain"
It could go like that or he would really be a pure and just hero that leaves/dies after his work is done.