Yeah, next time stabilize the dream by rubbing your hands and looking at them. If you still wake up, don't worry. It happens to most people in the beginning.