Add some checks when save cookies
Don't save settings on reset
Revert "Don't remove settings dir on reset"

This reverts commit 6ff4bfb6018c0a126bdd5cdf39fe75d536ff9fe9.
We actually need to remove settings dir