That sounds pretty much like a false awakening to me (you dream that you wake up). A great habit would be to do a reality check whenever you wake up, so that you would also do it when you experience a false awakening.