added try-catch for linkedIn API