KABOOM! when hitting headlights.....

Ill check the ignition wiring. I blew up a muffler after forgetting the coil wire during a start after swap.

But heres the thing. When I pulled the headlight switch, It first 'boomed' then died for a spit second. I dont remember it having any time to load the cylinder.

Ill check ignition.