Too little ignition timing at idle creates running on because the throttle plate is open quite a bit at idle. At switch off the engine easily siphons fuel causing the run on. To combat this anti-die selling solemoids were created. The whole concept was stupid and ford was the biggest advocate for it in the seventies.
Best way to fix it is to rework the timing so you have about 10-12 deg at idle with about 34-35 total all in by 3500rpm. Adjust the carby to suit. Make sure you don't have more than 10 deg on vac advance.
If that doesn't fix it spray a good dose of water down the carby at fast idle. That should help clean up the deposits which can cause it