Well, it's a good thing that you've stopped. Besides, 40 cigarettes was too much! 😮
But you're right. It's much better to quit progressively until you don't need it anymore. If you go cold turkey, that'll cause more harm than good.
I did the same with FB. It creates a lot of stress and anxiety. Moreover, if you're not a social person, what's the point of it???