Wrap web storage setItem in a try catch, and enable client-side logging