"I tried my best to stop the country from sliding towards disaster," Hamdok said in his resignation speech.