Glad to see if you are ok.
If you have a HT engine, this should be an emergency that you should plan in advance in case if happens.
Here are some suggestions if you find yourself in this situation.
1. Pull clutch in. My clutch is set up on one of my bikes so I can pull clutch with two figners and use remaining fingers to pull front brakes.
2. Press kill switch. Somethings this doesn't work.
3. Rip spark plug wire off. This is what I've done in the past and it worked quite well.