Looking for drama where the end is shocking and will flipp the world on its end and a new era is the only way forward. 

Like I saw one American drama, don't remember its name, but they basically worked really hard to prevent a nuclear war but in the end a nuclear bomb goes off and they find themselves in a new world,. 

Or like another drama, which I don't remember the name of, where they get phonecalls from an AI and tries to prevent their murder or whatever and in the end the AI starts to control everything and assigns factories and whatever to build robots and whatever and basically takes over the world. Probably remembering wrong and perhaps new seasond came out after, but anyhow, ignore that and just go with what I'm looking for.