There is no such thing as failure when it comes to stopping smoking. There really isn't. If you want to stop, rest assured you will. You may just need to find the right time and the right way for you. Very few people who have achieved something in life manage it the first time - often it takes a few attempts. Ask someone who has stopped successfully and easily and they may well tell you that they had to try more than once.
It's not a case of failing; just try something different and keep doing that until you stop easily and permanently. The secret is to never stop trying. Tell yourself that you will be a non-smoker. You are 100% confident of this, the only thing you don't know is when this will happen. But once you decide that it will happen, the pressure is off.
For further ideas and advice and ways to stop smoking, visit the substantial resources section of this site - Stop Smoking Resources