Sorry Dave, I’m afraid I can’t do that! PCs refuse to shut down after Microsoft patch
(www.theregister.com)
The Matrix
If humanity's first reaction to sapient machines is to blot out the sun without thinking about what would happen to them, that's on them at that point.
They're lucky the machines cared enough to try and help humans, rather than leave them to the consequences of their own actions.