A software always runs on a computer. A software always do what its creator wants it to do.
If the software doesn’t do what its creator wanted, it is a mistake from the coder, a bug.
If the software runs without the consent of the computer’s owner, it is a malware/virus.
Stopping a software is as easy as shutting down the computer on which it is running.
Terminator and Mission Impossible are hollywood fiction, there’s no such thing as "rogue software".
@ploum I imagine that viruses can get out of control and spread to more computers than intended
but I'm perfectly happy to think of AI as just another kind of malware