Lessons From a Failing Smart Grid