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

Most likely you have a bad ballast resistor.