I had the same problem with a customers Pantera, the engine would turn off fine when cold and then not turn off when warmed up and fans on. I used the info at panteraplace.com and simply changed the fan to the accessory circuit and not the run circuit. It involved unplugging a connector from one fuse and hooking it to another. Very simple,problem solved.
PANTERA INTERNATIONAL
A DE TOMASO CAR CLUB
Presents the De Tomaso Forums
The On-Line Meeting Place for De Tomaso Owners and Enthusiasts From Around the World
Clicking on the banner will take you to the sponsor's website.