Headlight on warning buzzer ?????

I was thinking of adding a modern relay that shuts them off for you after 2-5 minutes after the key is turned off. Got to look into it.