I'm not sure on legalities, but I remember clifford used to do an alarm set that did this.
I would think that is it not illegal due to the fact that turbo timers are designed to run the engine when the key is removed to allow the turbo to cool and spool down. This can keep the engine on for nearly 5 mins after the key is removed and the car locked.