If you use a bike computer: the Garmin Varia tail lights auto shutoff shortly after disconnecting from the computer, and the computers themselves have auto shutoff after a period of inactivity.
It's very unlikely that you'll forget to turn off the computer in the first place. And the whole experience is very smooth.
How is it unlikely that I forget to turn off the computer?