People looking at the state of Islam in a similar way have even suggested that this possible impending collapse of Islam is emboldening terrorists, making them more desperate to advance their goals while they still have the chance.
That is very likely a factor in their behavior. They see the advancing threat to their religion just as we do.