It missed us by 9 days

Might've misunderstood, but couldn't governement have a system in place to shut down down the grid for an hour in case of a solar flare ? I realise that shutting down the grid isn't just switching of a light but I don't see why we couldn't track risk factor of a massive solar flare and then put on alert all necesary staff and have a basic ai instantly give a signal to shut down. How unrealistic am I being ?