I've been beginning to have lucid dreams lately, but very quick. As soon as I realize I'm dreaming, something goes wrong, and I wake up.

What's the first thing I should do after I realize I'm dreaming?