I get this chance to get stuck in dreams sometimes too. It is annoying.

Not too sure for the "science behind it" but I think it is related to the phases of REM sleep. We tend to have cycles shorter in duration and than longer periods in the morning hours just prior to waking up.

When I have short naps - I become stuck often.

When I have other LD's during the early hours of sleep I tend to get stuck & or wake up in bed - look at the clock and see that I have not slept that long.

I do what you did. Stay clam - I wait until another chance to dream and hopefully not wake my self up.