Add try catch to handle the storage error