Yeah, I have been having this same problem alot lately.

I was on a long break from lucid dreaming practice because of some issues in the real world I was dealing with, but I started getting random short lucid dreams.

I find that if I stand completely still and keepsaying "I am lucid" in the dream, it longends it, but not much, that's just me.