If the magneto wasn't working properly it wouldn't run but...
If you cannot shut the engine off by grounding the ignition at the kill terminal on the magneto then there is a problem with the magneto. R&R the magneto.
Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth.
Serving Greenville, Winterville and Ayden NC