Wrap extension initialization into try-catch