One interpretation was that he choose his death wisely. He was old and tired and wanted to go a with a splash. In his society, legacy mattered a lot. If that's the case, he did fine.
He was accused by poets and politicians, not the common man. Most probably because he rubbed some powerful people in the wrong way; the modern consensus makes a believable point about it being political, Socrates not being a democracy fanboy and all.
Ever heard of how Socrates died? haha