Probably the wire going to the ballast resistor not the one coming out of it. Test it for 12 volts when you turn the key on and that it just happens when the key is on....
Me personally I have a very custom application and have a switch on the dash to turn the engine on and off. I have it hooked to that. Like my ignition switch on my steering column merely starts the car it doesn't turn it off...