Refactor handle_command_failures method.
Refactor handle_command_failures method.

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