catch exception if local storage is full