It takes a strong will to resist one's weakness. Kudos to you, especially after your loss.
I personally have never had an attachment so strong that I couldn't walk away, smoking cigarettes included. Took me a while, and the appropriate timing, but I've done it twice in the last 15 years.
I have several people in my extended family who are in the 'recovering' department. One, has been 20+ years, the others assorted numbers of 5 years to 2 days. There is no shame in acknowledging a weakness, only in not doing something about it.