Just stay calm when you have realized it's a lucid dream, if you feel like you are waking up spin around or concentrate on a particular thing or object.