Tidy up try_connect function
Tidy up try_connect function

narry/weave,tomwilkie/weave,n054/weave,tomwilkie/weave,BWITS/weave,n054/weave,dpw/weave,kidaa/weave,paulbellamy/weave,philipz/weave,aaam/weave,philipz/weave,bboreham/weave,bboreham/weave,2opremio/weave,inercia/weave,cgvarela/weave,aaam/weave,inercia/weave,paulbellamy/weave,aaam/weave,dpw/weave,achanda/weave,OnePaaS/weave,weaveworks/weave,tomwilkie/weave,paladin74/weave,BWITS/weave,rade/weave,BWITS/weave,philipz/weave,philipz/weave,squaremo/weave,n054/weave,weaveworks/weave,errordeveloper/weave,weaveworks/weave,errordeveloper/weave,paladin74/weave,tomwilkie/weave,rade/weave,cgvarela/weave,inercia/weave,kidaa/weave,squaremo/weave,awh/weave,inercia/weave,paulbellamy/weave,OnePaaS/weave,errordeveloper/weave,errordeveloper/weave,2opremio/weave,paladin74/weave,cgvarela/weave,rade/weave,ycaihua/weave,beni55/weave,awh/weave,errordeveloper/weave,dpw/weave,rade/weave,cgvarela/weave,2opremio/weave,paulbellamy/weave,beni55/weave,bboreham/weave,achanda/weave,beni55/weave,bboreham/weave,bboreham/weave,weaveworks/weave,ycaihua/weave,inercia/weave,n054/weave,aaam/weave,2opremio/weave,paladin74/weave,beni55/weave,paladin74/weave,squaremo/weave,OnePaaS/weave,awh/weave,BWITS/weave,narry/weave,dpw/weave,awanke/weave,2opremio/weave,awanke/weave,n054/weave,philipz/weave,beni55/weave,awh/weave,achanda/weave,awanke/weave,rade/weave,achanda/weave,ycaihua/weave,OnePaaS/weave,ycaihua/weave,awanke/weave,cgvarela/weave,narry/weave,narry/weave,kidaa/weave,dpw/weave,awanke/weave,kidaa/weave,narry/weave,kidaa/weave,squaremo/weave,awh/weave,squaremo/weave,OnePaaS/weave,ycaihua/weave,aaam/weave,tomwilkie/weave,achanda/weave,BWITS/weave