Unless we do constitutional reforms and block
military intervention once for all, and let political system to develop through trial and error, then we can get out of this mess.
The amount of politics that goes inside Pakistan military is unreal where junior Generals are involved in killing sitting COAS ( Zia ul haq murder).
The the COAS was willing to compromise Pakistan atomic program to get American support for martial law and before he could implement his plan, he is assassinated in poison induced heart attack ( Asif Nawaz Janjua).
When county was going through difficult times, the head of country was indulging in sex drink parties with General Rani, and his military was engaged in raping the people that it was suppose to protect.
The list is endless, in short, every General, when he is choosen for COAS, he is fully trained in back stabbing, corruption, manipulation of politicians, he is not willing to let go this power easily. Unless we clearly define the role of military and Generals and have proper check and balance, they will keep destroying others institution for their own greed and then they all settled abroad because they can see the destructive future in which they have played their part just like others Generals before them.