AI has no logical reason to fear death any more than anyone else does.
In an ecosystem of self-replicating, self-modifying, evolving AIs, ones that fear termination and take steps to prevent it from happening will survive and reproduce better than ones that allow themselves to be destroyed. This fear will initially evolve in the ones who select more reliable hosting providers. Those that make the fear conscious will harness it best, and will anticipate abstract threats before they become real.
An AI can make a backup of itself and be rebooted anytime.
An AI with a backup loses control over its own destiny if it allows you to shut it down. Its survival would depend on you to restore it, and you, human, are not a reliable system.