[CHEF-1336] hide bug in net/http
[CHEF-1336] hide bug in net/http

net/http has a bug where connection refused shows up as NoMethodError,
no method #closed? on nil. Catch exactly this error and raise an
Errno::ECONNREFUSED (which is the correct/original error).

ccsplit/chef,sanditiffin/chef,nicklv/chef,youngjl1/chef,bahamas10/chef,baberthal/chef,sysbot/chef,martinb3/chef,ccope/chef,jblaine/chef,gsaslis/chef,askl56/chef,lamont-granquist/chef,zuazo-forks/chef,natewalck/chef,ckaushik/chef,pburkholder/chef,h4ck3rm1k3/chef,smurawski/chef,lamont-granquist/chef,sideci-sample/sideci-sample-chef,robmul/chef,zuazo-forks/chef,tbriggs-curse/chef,hfichter/chef,adamleff/chef,sideci-sample/sideci-sample-chef,DeWaRs1206/chef,tbriggs-curse/chef,faspl/chef,ranjib/chef,EasonYi/chef,GabKlein/chef-merged,askl56/chef,sysbot/chef,polamjag/chef,permyakovsv/chef,kaznishi/chef,gene1wood/chef,Tensibai/chef,kisoku/chef,gene1wood/chef,b002368/chef-repo,ccope/chef,grubernaut/chef,malisettirammurthy/chef,Ppjet6/chef,Kast0rTr0y/chef,tomdoherty/chef,juliandunn/chef,coderanger/chef,jk47/chef,custora/chef,acaiafa/chef,BackSlasher/chef,malisettirammurthy/chef,ducthanh/chef,natewalck/chef,clintoncwolfe/chef,swalberg/chef,tbunnyman/chef,criteo-forks/chef,EasonYi/chef,cachamber/chef,karthikrev/chef,ranjib/chef,ekometti/chef,mikedodge04/chef,aspiers/chef,jmhardison/chef,chef/chef,lamont-granquist/chef,nvwls/chef,nguyen-tien-mulodo/chef,sanditiffin/chef,pburkholder/chef,strangelittlemonkey/chef,aaron-lane/chef,opsengine/chef,docwhat/chef,jk47/chef,3dinfluence/chef,malisettirammurthy/chef,kisoku/chef,ducthanh/chef,martinb3/chef,evan2645/chef,sysbot/chef,baberthal/chef,tbunnyman/chef,hfichter/chef,sempervictus/chef,docwhat/chef,swalberg/chef,joemiller/chef,opsengine/chef,tbriggs-curse/chef,gsaslis/chef,SUSE-Cloud/chef,mwrock/chef,higanworks/chef,nalingarg2/chef-1,3dinfluence/chef,karthikrev/chef,DeWaRs1206/chef,jk47/chef,skmichaelson/chef,polamjag/chef,jimmymccrory/chef,coderanger/chef,higanworks/chef,higanworks/chef,nalingarg2/chef-1,permyakovsv/chef,ChaosCloud/chef,mikefaille/chef,jhulten/chef,nicklv/chef,jonlives/chef,mikefaille/chef,kaznishi/chef,nguyen-tien-mulodo/chef,faspl/chef,martinisoft/chef,clintoncwolfe/chef,jblaine/chef,antonifs/chef,clintoncwolfe/chef,nicklv/chef,ktpan/chef-play,cgvarela/chef,nathwill/chef,erkolson/chef,renanvicente/chef,jordane/chef,clintoncwolfe/chef,opsengine/chef,jk47/chef,jblaine/chef,ranjib/chef,jkerry/chef,jkerry/chef,mio-g/chef,jimmymccrory/chef,jagdeesh109/chef,cmluciano/chef,lamont-granquist/chef,BackSlasher/chef,antonifs/chef,martinb3/chef,robmul/chef,3dinfluence/chef,faspl/chef,mal/chef,erkolson/chef,jaymzh/chef,higanworks/chef,AndyBoucher/Chef-Testing,smurawski/chef,andrewpsp/chef,baberthal/chef,permyakovsv/chef,oclaussen/chef,oclaussen/chef,grubernaut/chef,ccsplit/chef,someara/chef,skmichaelson/chef,jonlives/chef,nalingarg2/chef-1,aaron-lane/chef,Ppjet6/chef,renanvicente/chef,jmhardison/chef,gsaslis/chef,ktpan/chef-play,patcon/chef,nvwls/chef,nguyen-tien-mulodo/chef,EasonYi/chef,sysbot/chef,Igorshp/chef,h4ck3rm1k3/chef,SUSE-Cloud/chef,davestarling/chef,ccope/chef,cachamber/chef,cgvarela/chef,acaiafa/chef,mikedodge04/chef,nsdavidson/chef,oclaussen/chef,sideci-sample/sideci-sample-chef,sanditiffin/chef,gene1wood/chef,mattray/chef,mio-g/chef,BackSlasher/chef,martinisoft/chef,legal90/chef,strangelittlemonkey/chef,natewalck/chef,aspiers/chef,ccsplit/chef,strangelittlemonkey/chef,OpSitters/chef,mio-g/chef,kamaradclimber/chef,Igorshp/chef,sometimesfood/chef,paulmooring/chef,sysbot/chef,Kast0rTr0y/chef,pburkholder/chef,MichaelPereira/chef,DeWaRs1206/chef,b002368/chef-repo,legal90/chef,mwrock/chef,3dinfluence/chef,martinb3/chef,AndyBoucher/Chef-Testing,mal/chef,DeWaRs1206/chef,sempervictus/chef,sekrett/chef,jonlives/chef,jmhardison/chef,opsengine/chef,h4ck3rm1k3/chef,kaznishi/chef,nvwls/chef,andrewpsp/chef,clintoncwolfe/chef,criteo-forks/chef,SUSE-Cloud/chef,aaron-lane/chef,nguyen-tien-mulodo/chef,mwrock/chef,bahamas10/chef,cgvarela/chef,jimmymccrory/chef,erkolson/chef,sekrett/chef,joemiller/chef,antonifs/chef,mal/chef,nellshamrell/chef,brettcave/chef,jhulten/chef,ktpan/chef-play,evan2645/chef,josb/chef,mikedodge04/chef,zshuo/chef,kisoku/chef,jagdeesh109/chef,jk47/chef,tomdoherty/chef,brettcave/chef,evan2645/chef,jhulten/chef,ktpan/chef-play,webframp/chef,danielsdeleo/seth,aspiers/chef,webframp/chef,webframp/chef,nvwls/chef,jkerry/chef,b002368/chef-repo,Kast0rTr0y/chef,EasonYi/chef,paulmooring/chef,tbriggs-curse/chef,robmul/chef,b002368/chef-repo,natewalck/chef,sekrett/chef,acaiafa/chef,GabKlein/chef-merged,grubernaut/chef,andrewpsp/chef,faspl/chef,davestarling/chef,martinisoft/chef,jimmymccrory/chef,danielsdeleo/seth,juliandunn/chef,bahamas10/chef,lamont-granquist/chef,mattray/chef,jagdeesh109/chef,jkerry/chef,tbunnyman/chef,3dinfluence/chef,grubernaut/chef,ChaosCloud/chef,aaron-lane/chef,circleback/chef,malisettirammurthy/chef,sempervictus/chef,mattray/chef,skmichaelson/chef,OpSitters/chef,youngjl1/chef,strangelittlemonkey/chef,h4ck3rm1k3/chef,Tensibai/chef,skmichaelson/chef,ranjib/chef,erkolson/chef,onlyhavecans/chef,juliandunn/chef,Igorshp/chef,ChaosCloud/chef,ktpan/chef-play,davestarling/chef,ekometti/chef,nicklv/chef,BackSlasher/chef,onlyhavecans/chef,mikefaille/chef,andrewpsp/chef,pburkholder/chef,tas50/chef-1,nalingarg2/chef-1,legal90/chef,cachamber/chef,skmichaelson/chef,pburkholder/chef,kaznishi/chef,chef/chef,jonlives/chef,MichaelPereira/chef,jkerry/chef,EasonYi/chef,swalberg/chef,robmul/chef,karthikrev/chef,Igorshp/chef,baberthal/chef,strangelittlemonkey/chef,legal90/chef,onlyhavecans/chef,askl56/chef,mikefaille/chef,cmluciano/chef,nsdavidson/chef,someara/chef,MichaelPereira/chef,gene1wood/chef,tbunnyman/chef,ShadySQL/chef-merged,polamjag/chef,tbunnyman/chef,jagdeesh109/chef,sempervictus/chef,ccsplit/chef,jordane/chef,malisettirammurthy/chef,jagdeesh109/chef,SUSE-Cloud/chef,MsysTechnologiesllc/chef,docwhat/chef,DeWaRs1206/chef,adamleff/chef,sometimesfood/chef,chef/chef,nicklv/chef,andrewpsp/chef,smurawski/chef,permyakovsv/chef,grubernaut/chef,cachamber/chef,joyent/chef,nellshamrell/chef,kisoku/chef,GabKlein/chef-merged,oclaussen/chef,coderanger/chef,SUSE-Cloud/chef,tbunnyman/chef,cgvarela/chef,natewalck/chef,jimmymccrory/chef,GabKlein/chef-merged,oclaussen/chef,ccsplit/chef,Ppjet6/chef,renanvicente/chef,acaiafa/chef,jmhardison/chef,robmul/chef,faspl/chef,kamaradclimber/chef,mal/chef,ducthanh/chef,martinb3/chef,bahamas10/chef,cachamber/chef,davestarling/chef,mal/chef,mio-g/chef,brettcave/chef,mattray/chef,Kast0rTr0y/chef,danielsdeleo/seth,zuazo-forks/chef,davestarling/chef,nellshamrell/chef,onlyhavecans/chef,danielsdeleo/seth,grubernaut/chef,martinb3/chef,ckaushik/chef,OpSitters/chef,someara/chef,antonifs/chef,EasonYi/chef,josb/chef,zuazo-forks/chef,ranjib/chef,jordane/chef,antonifs/chef,zuazo-forks/chef,cmluciano/chef,criteo-forks/chef,ChaosCloud/chef,MsysTechnologiesllc/chef,adamleff/chef,webframp/chef,sempervictus/chef,natewalck/chef,cmluciano/chef,pburkholder/chef,webframp/chef,cgvarela/chef,tas50/chef-1,custora/chef,custora/chef,sometimesfood/chef,ChaosCloud/chef,nalingarg2/chef-1,coderanger/chef,joemiller/chef,chef/chef,acaiafa/chef,AndyBoucher/Chef-Testing,AndyBoucher/Chef-Testing,adamleff/chef,tas50/chef-1,cachamber/chef,permyakovsv/chef,paulmooring/chef,criteo-forks/chef,ekometti/chef,skmichaelson/chef,sanditiffin/chef,adamleff/chef,BackSlasher/chef,nathwill/chef,jimmymccrory/chef,nsdavidson/chef,AndyBoucher/Chef-Testing,mikefaille/chef,joyent/chef,ekometti/chef,docwhat/chef,nvwls/chef,brettcave/chef,patcon/chef,kaznishi/chef,martinisoft/chef,Ppjet6/chef,SUSE-Cloud/chef,ccope/chef,Tensibai/chef,MichaelPereira/chef,bahamas10/chef,jagdeesh109/chef,baberthal/chef,criteo-forks/chef,paulmooring/chef,gsaslis/chef,zshuo/chef,joemiller/chef,tomdoherty/chef,jkerry/chef,gsaslis/chef,cmluciano/chef,juliandunn/chef,mal/chef,nellshamrell/chef,mikedodge04/chef,aspiers/chef,someara/chef,renanvicente/chef,Igorshp/chef,ducthanh/chef,Kast0rTr0y/chef,jmhardison/chef,circleback/chef,sanditiffin/chef,paulmooring/chef,jaymzh/chef,nathwill/chef,permyakovsv/chef,faspl/chef,sometimesfood/chef,smurawski/chef,martinisoft/chef,tomdoherty/chef,OpSitters/chef,patcon/chef,josb/chef,nalingarg2/chef-1,mikefaille/chef,nathwill/chef,mio-g/chef,ShadySQL/chef-merged,Tensibai/chef,bahamas10/chef,polamjag/chef,ktpan/chef-play,tas50/chef-1,sempervictus/chef,nguyen-tien-mulodo/chef,ckaushik/chef,zuazo-forks/chef,ShadySQL/chef-merged,jordane/chef,jblaine/chef,sometimesfood/chef,joyent/chef,sekrett/chef,tbriggs-curse/chef,kaznishi/chef,sideci-sample/sideci-sample-chef,b002368/chef-repo,youngjl1/chef,hfichter/chef,aspiers/chef,jaymzh/chef,evan2645/chef,OpSitters/chef,brettcave/chef,nellshamrell/chef,tomdoherty/chef,ChaosCloud/chef,nathwill/chef,jblaine/chef,jk47/chef,BackSlasher/chef,zshuo/chef,mikedodge04/chef,criteo-forks/chef,jmhardison/chef,DeWaRs1206/chef,polamjag/chef,ckaushik/chef,jaymzh/chef,hfichter/chef,erkolson/chef,AndyBoucher/Chef-Testing,hfichter/chef,higanworks/chef,askl56/chef,OpSitters/chef,mattray/chef,youngjl1/chef,custora/chef,docwhat/chef,ccsplit/chef,mio-g/chef,ShadySQL/chef-merged,circleback/chef,circleback/chef,Ppjet6/chef,custora/chef,antonifs/chef,ranjib/chef,karthikrev/chef,malisettirammurthy/chef,baberthal/chef,jonlives/chef,jonlives/chef,opsengine/chef,askl56/chef,sometimesfood/chef,ckaushik/chef,nicklv/chef,juliandunn/chef,mwrock/chef,nvwls/chef,josb/chef,oclaussen/chef,swalberg/chef,evan2645/chef,joemiller/chef,b002368/chef-repo,jordane/chef,onlyhavecans/chef,swalberg/chef,Ppjet6/chef,legal90/chef,adamleff/chef,zshuo/chef,jhulten/chef,zshuo/chef,nsdavidson/chef,youngjl1/chef,circleback/chef,polamjag/chef,someara/chef,lamont-granquist/chef,patcon/chef,strangelittlemonkey/chef,youngjl1/chef,sanditiffin/chef,h4ck3rm1k3/chef,MsysTechnologiesllc/chef,nguyen-tien-mulodo/chef,clintoncwolfe/chef,ShadySQL/chef-merged,acaiafa/chef,nathwill/chef,smurawski/chef,nsdavidson/chef,josb/chef,danielsdeleo/seth,ckaushik/chef,tbriggs-curse/chef,ekometti/chef,nellshamrell/chef,paulmooring/chef,smurawski/chef,swalberg/chef,ekometti/chef,evan2645/chef,Igorshp/chef,joemiller/chef,cgvarela/chef,3dinfluence/chef,karthikrev/chef,kamaradclimber/chef,onlyhavecans/chef,Tensibai/chef,andrewpsp/chef,erkolson/chef,custora/chef,robmul/chef,zshuo/chef,Kast0rTr0y/chef,MichaelPereira/chef,kamaradclimber/chef,brettcave/chef,mikedodge04/chef,sideci-sample/sideci-sample-chef,MichaelPereira/chef,joyent/chef,gsaslis/chef,joyent/chef,ducthanh/chef,webframp/chef,patcon/chef,aaron-lane/chef,h4ck3rm1k3/chef,askl56/chef,josb/chef,someara/chef,nsdavidson/chef,kisoku/chef,sekrett/chef,patcon/chef,circleback/chef,ccope/chef,renanvicente/chef,legal90/chef,karthikrev/chef,sekrett/chef,renanvicente/chef,jblaine/chef,MsysTechnologiesllc/chef,ducthanh/chef,aaron-lane/chef,docwhat/chef