Even as it launches waves of terrorist attacks around the globe, the Islamic State is quietly preparing its followers for the eventual collapse of the caliphate it proclaimed with great fanfare two years ago. In public messages and in recent actions in Syria, the group’s leaders are acknowledging the terrorist organization’s declining fortunes on the battlefield while bracing for the possibility that its remaining strongholds could fall. At the same time, the group is vowing…