Spoiler Alert

I never understood why he kills himself at the end of the play. He says he's wasted his life chasing Valjean but is that enough to end it? Why not focus your remaining years on righting your wrongs?