The civil-military politics of war termination