i had it happen one or two times as well...... my feeling is it has to do with the key (ignition lock assembly) still thinks the key is in ignition,when it is not,,,,and is related to having headlamps on.. dont think its a "sequence" issue as much as a random "ignition lock/tumbler" thing... (something not returning or sticking inside)
just a gut feeling
chris