Custom error handler for connection failures.
If the handler throws or rejects, the error is propagated when a caller is waiting for discovery. Returning normally treats the server as ignored.
ConnectionErrorHandler: (params: __type) => void | Promise<void>