Refactor the `connect` method to return a `ConnectError` so that it can be reported via logging at call sites, and returned as an error from the node handle.