FYI The way BMW manage turning off the headlight and other items when the starter is engaged is rather simple and a little tricky, they run the earth return of the "Load Relief Relay" through the starter motor, it is a very low impedance as you could imagine. Perhaps similar could be done with the headlight relay on the Terra