Turkey is a little different here. Their military is supposed to take power when the president gets too radical. They're then supposed to run an election for a new president. AFAIK this has happened a number of times in their history.
Sorry, I didn't mean to do that. That's the explanation I've heard before and it was never brought to my attention they were painful processes for the people. The way I was told about it, I thought it was a pretty streamlined process that impacted only the people in power.