removed close_fds parameter from emulatorreset entry point added error checking on killadb and killemulator for consistency
removed close_fds parameter from emulatorreset entry point
added error checking on killadb and killemulator for consistency

Change-Id: I7db405f618e29be51f62eb344a437a88feeac364

thequixotic/appinventor-sources,wanddy/appinventor-sources,puravidaapps/appinventor-sources,mark-friedman/web-appinventor,afmckinney/appinventor-sources,KeithGalli/appinventor-sources,liyucun/appinventor-sources,egiurleo/appinventor-sources,yflou520/appinventor-sources,Edeleon4/punya,mintingle/appinventor-sources,doburaimo/appinventor-sources,dengxinyue0420/appinventor-sources,nickboucart/appinventor-sources,youprofit/appinventor-sources,ZachLamb/appinventor-sources,onyeka/AppInventor-WebApp,JalexChang/appinventor-sources,yflou520/appinventor-sources,graceRyu/appinventor-sources,barreeeiroo/appinventor-sources,wicedfast/appinventor-sources,weihuali0509/appinventor-sources,anseo/friedgerAI24BLE,nmcalabroso/appinventor-sources,mark-friedman/web-appinventor,thequixotic/appinventor-sources,jithinbp/appinventor-sources,marksherman/appinventor-sources,sujianping/appinventor-sources,jcweaver/appinventorTutorial,marksherman/appinventor-sources,halatmit/appinventor-sources,jsheldonmit/appinventor-sources,aouskaroui/appinventor-sources,marksherman/appinventor-sources,tvomf/appinventor-mapps,weihuali0509/appinventor-sources,tatuzaumm/app-inventor2-custom,ram8647/appinventor-sources,warren922/appinventor-sources,RachaelT/appinventor-sources,sujianping/appinventor-sources,FIRST-Tech-Challenge/appinventor-sources,jithinbp/appinventor-sources,jisqyv/appinventor-sources,AlanRosenthal/appinventor-sources,weihuali0509/appinventor-sources,jisqyv/appinventor-sources,kidebit/AudioBlurp,cs6510/CS6510-LiveEdit-Onyeka,thilankam/appinventor-sources,afmckinney/appinventor-sources,mit-dig/punya,kidebit/AudioBlurp,joshaham/latest_app_inventor,FIRST-Tech-Challenge/appinventor-sources,CoderDojoLX/appinventor-sources,Edeleon4/punya,awoodworth/appinventor-sources,farxinu/appinventor-sources,spefley/appinventor-sources,RachaelT/appinventor-sources,wanddy/ai4cn,graceRyu/appinventor-sources,kidebit/https-github.com-wicedfast-appinventor-sources,warren922/appinventor-sources,ram8647/appinventor-sources,mark-friedman/web-appinventor,bxie/appinventor-sources,E-Hon/appinventor-sources,yflou520/appinventor-sources,Mateopato/appinventor-sources,yflou520/appinventor-sources,tiffanyle/appinventor-sources,weihuali0509/web-appinventor,liyucun/appinventor-sources,thilankam/appinventor-sources,puravidaapps/appinventor-sources,thequixotic/appinventor-sources,anseo/friedgerAI24BLE,ajcolter/appinventor-sources,Momoumar/appinventor-sources,anseo/friedgerAI24BLE,fturbak/appinventor-sources,FIRST-Tech-Challenge/appinventor-sources,warren922/appinventor-sources,bxie/appinventor-sources,Klomi/appinventor-sources,ZachLamb/appinventor-sources,Edeleon4/punya,lizlooney/appinventor-sources,frfranca/appinventor-sources,halatmit/appinventor-sources,satgod/appinventor,jithinbp/appinventor-sources,LaboratoryForPlayfulComputation/appinventor-sources,doburaimo/appinventor-sources,tatuzaumm/app-inventor2-custom,thilankam/appinventor-sources,fmntf/appinventor-sources,kannan-usf/AppInventorJavaBridge,Klomi/appinventor-sources,wicedfast/appinventor-sources,DRavnaas/appinventor-clone,LaboratoryForPlayfulComputation/appinventor-sources,liyucun/appinventor-sources,ajcolter/appinventor-sources,ram8647/appinventor-sources,kpjs4s/AppInventorJavaBridgeCodeGen,Momoumar/appinventor-sources,jsheldonmit/appinventor-sources,tiffanyle/appinventor-sources,themadrobot/appinventor-sources,youprofit/appinventor-sources,mintingle/appinventor-sources,farxinu/appinventor-sources,GodUseVPN/appinventor-sources,frfranca/appinventor-sources,yflou520/appinventor-sources,tvomf/appinventor-mapps,GodUseVPN/appinventor-sources,weihuali0509/web-appinventor,hasi96/appinventor-sources,joshaham/latest_app_inventor,Klomi/appinventor-sources,emeryotopalik/appinventor-sources,jisqyv/appinventor-sources,satgod/appinventor,wanddy/ai4cn,warren922/appinventor-sources,Klomi/appinventor-sources,mit-dig/punya,fturbak/appinventor-sources,graceRyu/appinventor-sources,bxie/appinventor-sources,onyeka/AppInventor-WebApp,krishc90/APP-INVENTOR,halatmit/appinventor-sources,wadleo/appinventor-sources,fturbak/appinventor-sources,spefley/appinventor-sources,RachaelT/appinventor-sources,ram8647/appinventor-sources,jithinbp/appinventor-sources,awoodworth/appinventor-sources,DRavnaas/appinventor-clone,tvomf/appinventor-mapps,cs6510/CS6510-LiveEdit-Onyeka,themadrobot/appinventor-sources,wanddy/ai4all2,josmas/app-inventor,kkashi01/appinventor-sources,gitars/appinventor-sources,toropeza/appinventor-sources,weihuali0509/appinventor-sources,gitars/appinventor-sources,wanddy/appinventor-sources,wanddy/ai4all2,doburaimo/appinventor-sources,krishc90/APP-INVENTOR,wanddy/ai4cn,fturbak/appinventor-sources,William-Byrne/appinventor-sources,nmcalabroso/appinventor-sources,gitars/appinventor-sources,CoderDojoLX/appinventor-sources,William-Byrne/appinventor-sources,wicedfast/appinventor-sources,E-Hon/appinventor-sources,frfranca/appinventor-sources,Edeleon4/punya,tatuzaumm/app-inventor2-custom,puravidaapps/appinventor-sources,onyeka/AppInventor-WebApp,Momoumar/appinventor-sources,nmcalabroso/appinventor-sources,Klomi/appinventor-sources,kannan-usf/AppInventorJavaBridge,bitsecure/appinventor1-sources,mit-cml/appinventor-sources,fmntf/appinventor-sources,kidebit/https-github.com-wicedfast-appinventor-sources,Mateopato/appinventor-sources,AlanRosenthal/appinventor-sources,kidebit/AudioBlurp,thequixotic/appinventor-sources,gitars/appinventor-sources,puravidaapps/appinventor-sources,barreeeiroo/appinventor-sources,wanddy/ai4cn,nwtel/appinventor-sources,toropeza/appinventor-sources,DRavnaas/appinventor-clone,kannan-usf/AppInventorJavaBridge,tiffanyle/appinventor-sources,nmcalabroso/appinventor-sources,JalexChang/appinventor-sources,KeithGalli/appinventor-sources,awoodworth/appinventor-sources,jisqyv/appinventor-sources,Edeleon4/punya,lizlooney/appinventor-sources,William-Byrne/appinventor-sources,jsheldonmit/appinventor-sources,GodUseVPN/appinventor-sources,egiurleo/appinventor-sources,themadrobot/appinventor-sources,weihuali0509/web-appinventor,jcweaver/appinventorTutorial,dengxinyue0420/appinventor-sources,kkashi01/appinventor-sources,kpjs4s/AppInventorJavaBridgeCodeGen,kpjs4s/AppInventorJavaBridgeCodeGen,ewpatton/appinventor-sources,nickboucart/appinventor-sources,LaboratoryForPlayfulComputation/appinventor-sources,marksherman/appinventor-sources,wicedfast/appinventor-sources,AlanRosenthal/appinventor-sources,themadrobot/appinventor-sources,kkashi01/appinventor-sources,thequixotic/appinventor-sources,ewpatton/appinventor-sources,Mateopato/appinventor-sources,doburaimo/appinventor-sources,halatmit/appinventor-sources,krishc90/APP-INVENTOR,lizlooney/appinventor-sources,satgod/appinventor,wadleo/appinventor-sources,hasi96/appinventor-sources,William-Byrne/appinventor-sources,William-Byrne/appinventor-sources,tiffanyle/appinventor-sources,mit-dig/punya,frfranca/appinventor-sources,mintingle/appinventor-sources,bitsecure/appinventor1-sources,weihuali0509/web-appinventor,wanddy/ai4cn,E-Hon/appinventor-sources,cs6510/CS6510-LiveEdit-Onyeka,jsheldonmit/appinventor-sources,jsheldonmit/appinventor-sources,CoderDojoLX/appinventor-sources,nwtel/appinventor-sources,bxie/appinventor-sources,afmckinney/appinventor-sources,AlanRosenthal/appinventor-sources,youprofit/appinventor-sources,josmas/app-inventor,ewpatton/appinventor-sources,RachaelT/appinventor-sources,JalexChang/appinventor-sources,aouskaroui/appinventor-sources,ram8647/appinventor-sources,LaboratoryForPlayfulComputation/appinventor-sources,hasi96/appinventor-sources,KeithGalli/appinventor-sources,KeithGalli/appinventor-sources,thilankam/appinventor-sources,jisqyv/appinventor-sources,mit-dig/punya,halatmit/appinventor-sources,graceRyu/appinventor-sources,josmas/app-inventor,mit-cml/appinventor-sources,cs6510/CS6510-LiveEdit-Onyeka,Edeleon4/punya,mintingle/appinventor-sources,mark-friedman/web-appinventor,mit-cml/appinventor-sources,toropeza/appinventor-sources,farxinu/appinventor-sources,mit-cml/appinventor-sources,LaboratoryForPlayfulComputation/appinventor-sources,Momoumar/appinventor-sources,frfranca/appinventor-sources,mit-cml/appinventor-sources,jcweaver/appinventorTutorial,fmntf/appinventor-sources,farxinu/appinventor-sources,farxinu/appinventor-sources,kidebit/https-github.com-wicedfast-appinventor-sources,wadleo/appinventor-sources,marksherman/appinventor-sources,bitsecure/appinventor1-sources,CoderDojoLX/appinventor-sources,kidebit/https-github.com-wicedfast-appinventor-sources,afmckinney/appinventor-sources,hasi96/appinventor-sources,mark-friedman/web-appinventor,ewpatton/appinventor-sources,wanddy/appinventor-sources,GodUseVPN/appinventor-sources,youprofit/appinventor-sources,JalexChang/appinventor-sources,sujianping/appinventor-sources,kpjs4s/AppInventorJavaBridgeCodeGen,anseo/friedgerAI24BLE,DRavnaas/appinventor-clone,aouskaroui/appinventor-sources,krishc90/APP-INVENTOR,nickboucart/appinventor-sources,weihuali0509/appinventor-sources,mintingle/appinventor-sources,wanddy/ai4all2,sujianping/appinventor-sources,satgod/appinventor,mit-dig/punya,tatuzaumm/app-inventor2-custom,toropeza/appinventor-sources,wadleo/appinventor-sources,jithinbp/appinventor-sources,lizlooney/appinventor-sources,joshaham/latest_app_inventor,halatmit/appinventor-sources,aouskaroui/appinventor-sources,tvomf/appinventor-mapps,wanddy/appinventor-sources,egiurleo/appinventor-sources,dengxinyue0420/appinventor-sources,mit-cml/appinventor-sources,puravidaapps/appinventor-sources,wadleo/appinventor-sources,ewpatton/appinventor-sources,gitars/appinventor-sources,awoodworth/appinventor-sources,onyeka/AppInventor-WebApp,aouskaroui/appinventor-sources,joshaham/latest_app_inventor,bitsecure/appinventor1-sources,jcweaver/appinventorTutorial,marksherman/appinventor-sources,egiurleo/appinventor-sources,ZachLamb/appinventor-sources,thilankam/appinventor-sources,weihuali0509/web-appinventor,liyucun/appinventor-sources,ajcolter/appinventor-sources,mit-dig/punya,josmas/app-inventor,ZachLamb/appinventor-sources,emeryotopalik/appinventor-sources,cs6510/CS6510-LiveEdit-Onyeka,dengxinyue0420/appinventor-sources,CoderDojoLX/appinventor-sources,tiffanyle/appinventor-sources,kkashi01/appinventor-sources,barreeeiroo/appinventor-sources,dengxinyue0420/appinventor-sources,krishc90/APP-INVENTOR,egiurleo/appinventor-sources,themadrobot/appinventor-sources,KeithGalli/appinventor-sources,jisqyv/appinventor-sources,spefley/appinventor-sources,emeryotopalik/appinventor-sources,fturbak/appinventor-sources,warren922/appinventor-sources,FIRST-Tech-Challenge/appinventor-sources,Mateopato/appinventor-sources,youprofit/appinventor-sources,AlanRosenthal/appinventor-sources,nwtel/appinventor-sources,toropeza/appinventor-sources,ajcolter/appinventor-sources,DRavnaas/appinventor-clone,ZachLamb/appinventor-sources,afmckinney/appinventor-sources,ajcolter/appinventor-sources,doburaimo/appinventor-sources,satgod/appinventor,bxie/appinventor-sources,Momoumar/appinventor-sources,graceRyu/appinventor-sources,mit-dig/punya,jcweaver/appinventorTutorial,josmas/app-inventor,nmcalabroso/appinventor-sources,spefley/appinventor-sources,wanddy/ai4all2,Mateopato/appinventor-sources,nickboucart/appinventor-sources,tvomf/appinventor-mapps,onyeka/AppInventor-WebApp,kannan-usf/AppInventorJavaBridge,barreeeiroo/appinventor-sources,GodUseVPN/appinventor-sources,E-Hon/appinventor-sources,kpjs4s/AppInventorJavaBridgeCodeGen,fmntf/appinventor-sources,spefley/appinventor-sources,ewpatton/appinventor-sources,wanddy/appinventor-sources,josmas/app-inventor,bitsecure/appinventor1-sources,barreeeiroo/appinventor-sources,lizlooney/appinventor-sources,nwtel/appinventor-sources,tatuzaumm/app-inventor2-custom,kkashi01/appinventor-sources,JalexChang/appinventor-sources,sujianping/appinventor-sources,kannan-usf/AppInventorJavaBridge,RachaelT/appinventor-sources,E-Hon/appinventor-sources,nwtel/appinventor-sources,FIRST-Tech-Challenge/appinventor-sources,hasi96/appinventor-sources,awoodworth/appinventor-sources,wicedfast/appinventor-sources,nickboucart/appinventor-sources,liyucun/appinventor-sources,joshaham/latest_app_inventor,fmntf/appinventor-sources,emeryotopalik/appinventor-sources,emeryotopalik/appinventor-sources,kidebit/AudioBlurp,wanddy/ai4all2,kkashi01/appinventor-sources,mintingle/appinventor-sources