Thai coup plotter-turned-premier bids adieu to politics after 9 years in power