fix(upgrade): wrap require in pcall