Bug 1226820 - Part 1: don't try to close a nil DB, or do so twice. Also other safety improvements and logging.
Bug 1226820 - Part 1: don't try to close a nil DB, or do so twice. Also other safety improvements and logging.

sharath-cliqz/browser-ios,cliqz-oss/browser-ios,cliqz-oss/browser-ios,cliqz-oss/browser-ios,cliqz-oss/browser-ios,cliqz-oss/browser-ios,sharath-cliqz/browser-ios,cliqz-oss/browser-ios,cliqz-oss/browser-ios,sharath-cliqz/browser-ios,sharath-cliqz/browser-ios,cliqz-oss/browser-ios,sharath-cliqz/browser-ios,sharath-cliqz/browser-ios,sharath-cliqz/browser-ios,sharath-cliqz/browser-ios