Remove localstorage items on error