Once the Grandmapocalypse occurs, the primary way to stop it is to buy the Elder Covenant, which is worth exactly 6,666,666,666,666 cookies. It is the last upgrade that can be researched in the Bingo center (after the Elder Pact) and puts a definite hold to the Grandmatriarchs' wrath and reverts their state of mind to "appeased". This results in the background changing into its orginal blue self and absence of the Red Cookie. The downside of the deal is that it reduces your CPS by 5%. In order to return to the anarchic state of the Grandmapocalypse, the Elder Covenant can always be revoked at a cost of 6,666,666,666 cookies (6,660,000,000,000 less than you need to make the contract). This also restores your CPS to normal. A way to put a temporary hold to the chaos is buying the Elder Pledge. Spending a few cookies on the Elder Pledge will put the genocidal grandmas to rest for 30 minutes. During this time their mood displays as "appeased". Every time an Elder Pledge is bought, its price goes up, capping at 549,755,813,888. The upgrade Sacrificial Rolling Pins doubles the time of peace, making it an hour long.
The Grandmapocalypse can also be stopped by selling all of your grandmas. Doing this causes the Grandmatriarchs' status to disappear from the Stats page, causes Red Cookies to stop appearing, and reverts the news ticker to the standard collection of headlines. The typical Grandma quotes that occur upon selling a grandma also appear. Buying at least one grandma will restart the Grandmapocalypse at the point you left off.