This is what the “Smart Grid” being developed under the auspices of NIST per Congress is intended to prevent. (Note that nobody owns the name “Smart Grid” so there are a LOT of so-called “Smart Grids” out there, somebody’s idea for marketing their gadgets, nearly all incapable of dealing with this.)
Our local utility (Washington state) is taking a slightly different tack. Instead of "smart-gridding" the whole house, they ask you to install a controller on your hot-water heater. I'd be fine with having that shut down during power shortages. That seems more logical than the "whole-house" route.