Improve error handling in iossim.
Improve error handling in iossim.

- When reporting errors from the simulator framework always include the error
  domain and error code since some of the strings come back from the simulator
  and those are localized.
- There appears to be a race condition where sometimes the simulator framework
  will end with an error, but the error is that the simulated app cleanly shut
  down; try to trap this error and don't fail the simulator run.

BUG=None

Review URL: https://chromiumcodereview.appspot.com/10831111

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@149427 0039d316-1c4b-4281-b951-d872f2087c98

krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,bright-sparks/chromium-spacewalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,M4sse/chromium.src,dednal/chromium.src,fujunwei/chromium-crosswalk,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,jaruba/chromium.src,zcbenz/cefode-chromium,nacl-webkit/chrome_deps,dushu1203/chromium.src,hgl888/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,krieger-od/nwjs_chromium.src,littlstar/chromium.src,M4sse/chromium.src,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,ChromiumWebApps/chromium,ltilve/chromium,nacl-webkit/chrome_deps,chuan9/chromium-crosswalk,Chilledheart/chromium,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,fujunwei/chromium-crosswalk,jaruba/chromium.src,bright-sparks/chromium-spacewalk,crosswalk-project/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,Jonekee/chromium.src,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,Chilledheart/chromium,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,ondra-novak/chromium.src,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,dednal/chromium.src,chuan9/chromium-crosswalk,anirudhSK/chromium,dushu1203/chromium.src,hujiajie/pa-chromium,zcbenz/cefode-chromium,mogoweb/chromium-crosswalk,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,zcbenz/cefode-chromium,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,bright-sparks/chromium-spacewalk,chuan9/chromium-crosswalk,markYoungH/chromium.src,timopulkkinen/BubbleFish,Jonekee/chromium.src,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,junmin-zhu/chromium-rivertrail,hujiajie/pa-chromium,junmin-zhu/chromium-rivertrail,ltilve/chromium,Chilledheart/chromium,littlstar/chromium.src,jaruba/chromium.src,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,zcbenz/cefode-chromium,ondra-novak/chromium.src,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,dushu1203/chromium.src,ltilve/chromium,nacl-webkit/chrome_deps,dushu1203/chromium.src,Just-D/chromium-1,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,pozdnyakov/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Fireblend/chromium-crosswalk,patrickm/chromium.src,markYoungH/chromium.src,markYoungH/chromium.src,M4sse/chromium.src,M4sse/chromium.src,jaruba/chromium.src,zcbenz/cefode-chromium,Chilledheart/chromium,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,axinging/chromium-crosswalk,ChromiumWebApps/chromium,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,nacl-webkit/chrome_deps,markYoungH/chromium.src,dednal/chromium.src,Just-D/chromium-1,timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,M4sse/chromium.src,zcbenz/cefode-chromium,axinging/chromium-crosswalk,dushu1203/chromium.src,dednal/chromium.src,krieger-od/nwjs_chromium.src,patrickm/chromium.src,Jonekee/chromium.src,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,mogoweb/chromium-crosswalk,ondra-novak/chromium.src,markYoungH/chromium.src,dednal/chromium.src,junmin-zhu/chromium-rivertrail,bright-sparks/chromium-spacewalk,ChromiumWebApps/chromium,dednal/chromium.src,junmin-zhu/chromium-rivertrail,Chilledheart/chromium,anirudhSK/chromium,mogoweb/chromium-crosswalk,anirudhSK/chromium,dednal/chromium.src,Just-D/chromium-1,pozdnyakov/chromium-crosswalk,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,M4sse/chromium.src,hgl888/chromium-crosswalk,Just-D/chromium-1,anirudhSK/chromium,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,crosswalk-project/chromium-crosswalk-efl,zcbenz/cefode-chromium,ltilve/chromium,timopulkkinen/BubbleFish,Jonekee/chromium.src,dednal/chromium.src,Just-D/chromium-1,dednal/chromium.src,markYoungH/chromium.src,axinging/chromium-crosswalk,fujunwei/chromium-crosswalk,anirudhSK/chromium,mogoweb/chromium-crosswalk,littlstar/chromium.src,ondra-novak/chromium.src,chuan9/chromium-crosswalk,jaruba/chromium.src,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,M4sse/chromium.src,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,patrickm/chromium.src,ltilve/chromium,markYoungH/chromium.src,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,bright-sparks/chromium-spacewalk,anirudhSK/chromium,nacl-webkit/chrome_deps,junmin-zhu/chromium-rivertrail,hujiajie/pa-chromium,PeterWangIntel/chromium-crosswalk,Jonekee/chromium.src,littlstar/chromium.src,timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,zcbenz/cefode-chromium,dushu1203/chromium.src,markYoungH/chromium.src,Just-D/chromium-1,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,mohamed--abdel-maksoud/chromium.src,zcbenz/cefode-chromium,hgl888/chromium-crosswalk-efl,jaruba/chromium.src,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,Fireblend/chromium-crosswalk,anirudhSK/chromium,axinging/chromium-crosswalk,axinging/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,markYoungH/chromium.src,jaruba/chromium.src,ondra-novak/chromium.src,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,zcbenz/cefode-chromium,Chilledheart/chromium,dushu1203/chromium.src,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,krieger-od/nwjs_chromium.src,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,Just-D/chromium-1,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,axinging/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,markYoungH/chromium.src,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,M4sse/chromium.src,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,M4sse/chromium.src,axinging/chromium-crosswalk,ltilve/chromium,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,ltilve/chromium,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,dushu1203/chromium.src,jaruba/chromium.src,Chilledheart/chromium,dushu1203/chromium.src,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,patrickm/chromium.src,bright-sparks/chromium-spacewalk,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk,timopulkkinen/BubbleFish,hujiajie/pa-chromium,patrickm/chromium.src,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,ChromiumWebApps/chromium,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,axinging/chromium-crosswalk,patrickm/chromium.src,bright-sparks/chromium-spacewalk,anirudhSK/chromium,jaruba/chromium.src,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,anirudhSK/chromium,hgl888/chromium-crosswalk,markYoungH/chromium.src,Jonekee/chromium.src,jaruba/chromium.src,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,littlstar/chromium.src,anirudhSK/chromium,Fireblend/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,Fireblend/chromium-crosswalk,Chilledheart/chromium,dednal/chromium.src,M4sse/chromium.src,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,chuan9/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,patrickm/chromium.src,pozdnyakov/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,littlstar/chromium.src,Fireblend/chromium-crosswalk,Jonekee/chromium.src