better handling connect errors such as econnrefused
Merge pull request #6 from erlyvideo/master

Better handling connect errors such as econnrefused