Battery kill switch.

As mowpower said, run the red wire from the alternator to the battery side of the switch. When you shut it off now the alternator is feeding power to the ignition and keeping it running, just the battery is isolated.