Adding a safety check for closing already closed filehandles
Adding a safety check for closing already closed filehandles

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