Free-market reforms insulate against economic crises and electoral defeat