Create a type guard `isUnknownError` to avoid relying on instanceOf which does not always work.
Create a type guard
isUnknownErrorto avoid relying on instanceOf which does not always work.