Return a Result.t from connect_by_name

Signed-off-by: John Else <john.else@citrix.com>