runs with key in start position. but dies when its out

A ballast resistor cannot come and go. It either passes current or it dont.