Add try catch to fix Private mode on IOS.