Increased diplomatic clout made mediation possible, but the real motivation is the potential devastation the war could cause to Pakistan itself.