RE: You may need to watch this film. (Your future may depend on it.)
A simple example would be global warming. Let's assume we have a neural network that is programmed to fight global warming. It would take in all the data and make calculations on how to best fight global warming. It would inevitably come to the conclusion that humans are causing global warming. What would be the simplest action stop global warming according to an algorithm programmed to do just that?
This made me think, you are right in something when a house is infected with a plague one does not destroy the house or move to another one simply eradicates them. But I think the AI should have a sense of ethics and morals with freedom to play, imagine and create, I really like the vision when the AI to see that humanity was confined to its self-destruction, I help them to spread by the solar system, develop better ways to travel.