If you have a Athlon XP and a compatible board it will do it itself. And a fan dieing will not kill your chip like BAM that its it. I mean it won't happen instantly. I ran my CPU without my pump on for a while ones and got this result

New Athlon XPs have a built in system that shuts them down. I think a shutdown proggy should work if you set it up right and all.