This is when you say "Oh shit, I'm dreaming!" and wake yourself up.

Take advantage of it next time. If you realize you're dreaming, try to roll out of bed. Spin around thinking of where you want to go. Worked for me my first time. Do whatever you want, it's a dream!