v4.3.1 - Harden the SDK by limited usage of local storage, timeout on shutdown
Also added logic to catch exceptions which should never happen in normal usage, but could if the local storage is overriden in a weird way (or we change types in the future)