I think Kim is merely a figurehead.
He might be, or maybe he’s finally pushed the generals to the point where it is in their best interest to be rid of him. When those other generals and their families around them are being fed to the dogs it doesn’t take long to figure out that they need to stem the bleeding at the source.