remove importations of unused modules
catch, report, and ignore localStorage errors