I know this feel, haven't had it for a while, but still. I'd just be a few seconds from sleeping and I knew it, until BOOP. Then I wake up.
Solution: When going to sleep, just relax and don't think about much. The problem is, you think you're dreaming, but you're awake. So your body's like, "stuff son, wake up you ain't dreaming." So in a sense, you were lucid dreaming.