If you realise you are dreaming then you have done a lucid dream, you have not failed.
To improve your experience and control of the dream try Dream Stabilization and Clarity Tutorial - Lucid Dreaming - Dream Views