Car runs after main switch by battery is off

maybe a relay that kills the power to the ignition when you shut off the battery.