Recent hostilities were a reminder of how easily a crisis could escalate into catastrophe.