catch localstorage exceptions
Release 0.0.6
Automatically rewritten for npm.