AFAIK,it should shut it off pretty quickly,unless your fuel shutoff switch is sticking "on"...or some source of current is activating it other than your ignition switch..
One car a friend had started doing something like this when he added an electric fan to his radiator..the car ran for several seconds after the key was shut off,if the fan was running!..we finally figured out that the electric fan motor was acting as a generator,being a permanent magnet design,it needed no "field" current to generate some DC voltage!.
....the car would "run on", if the fan was on,unil the fan slowed down enough to stop "charging"!..the current was fed back into the coil and distributor by the wire he tapped into the fuse box to get power for the fan!...we added a diode to prevent this from happening again,and it worked fine..no more "run on"..
You got electric fans??...if not,maybe its haunted!.