Add try catch every time we need to use a SharedObject to avoid error when not allowed