Headlights time out by themselves
If the headlights are left ON when exiting the vehicle, they will time out by themselves after a short period of time, usually within 3 minutes. (This have nothing to do with autolights)

If you want the headlights to turn off right after shutdown you need to handle that another way, typically with a rearm pulse to a door pin.