catch local storage exceptions