Depending on vintage, you may have a safety lockout that kills the ignition whenever it wants. Older models had a black plastic capsule/cylinder with several wires that grounded the magneto when certain switches were open/ closed. It fails in a miserable way, causing misfire intermittently...