Added catch for when localStorage limit is reached