Better error handling for battle crashes
Better error handling for battle crashes

sama2/Viridian-Pokemon-Showdown,LightningStormServer/Lightning-Storm,anubhabsen/Pokemon-Showdown,BlazingAura/Showdown-Boilerplate,zczd/enculer,hayleysworld/asdfasdf,Flareninja/Sora,Zarel/Pokemon-Showdown,HoeenKid/Pokemon-Showdown-Johto,sama2/Lumen-Pokemon-Showdown,SerperiorBae/BaeShowdown,aakashrajput/Pokemon-Showdown,MeliodasBH/Articuno-Land,DarkSuicune/Kakuja-2.0,Psyientist/Showdown-Boilerplate,sama2/Universe-Pokemon-Showdown,ZestOfLife/PSserver,BadSteel/Omega-Pokemon-Showdown,xfix/Pokemon-Showdown,Nineage/Showdown-Boilerplate,JellalTheMage/Jellals-Server,Zarel/Pokemon-Showdown,gustavo515/gashoro,Extradeath/psserver,SerperiorBae/Pokemon-Showdown,k3naan/Pokemon-Showdown,BuzzyOG/Pokemon-Showdown,MasterFloat/LQP-Server-Showdown,Firestatics/omega,AWailOfATail/Pokemon-Showdown,MayukhKundu/Mudkip-Server,PauLucario/LQP-Server-Showdown,EienSeiryuu/Pokemon-Showdown,AvinashSwaminathan/lotus,TogeSR/Lumen-Pokemon-Showdown,Bryan-0/Pokemon-Showdown,gustavo515/gashoro,Yggdrasil-League/Yggdrasil,Nineage/Origin,SilverTactic/Showdown-Boilerplate,PrimalGallade45/Dropp-Pokemon-Showdown,catanatron/pokemon-rebalance,Wando94/Spite,Raina4uberz/Light-server,Breakfastqueen/advanced,Gold-Solox/Pokemon-Showdown,hayleysworld/serenityc9,TbirdClanWish/Pokemon-Showdown,MayukhKundu/Technogear,TogeSR/Lumen-Pokemon-Showdown,Firestatics/Omega-Alpha,hayleysworld/Showdown-Boilerplate,Flareninja/Showdown-Boilerplate,VoltStorm/Server-pokemon-showdown,Stroke123/POKEMON,SerperiorBae/Pokemon-Showdown-1,ZeroParadox/BlastBurners,Atwar/http-server-femalehq.rhcloud.com-80.psim.us-,SkyeTheFemaleSylveon/Mudkip-Server,TheManwithskills/New-boiler-test,Tesarand/Pokemon-Showdown,AustinXII/Pokemon-Showdown,sama2/Dropp-Pokemon-Showdown,JellalTheMage/PS-,SerperiorBae/Pokemon-Showdown,Oiawesome/DPPtServ2,kuroscafe/Paradox,SerperiorBae/Bae-Showdown-2,Legit99/Lightning-Storm-Server,Alpha-Devs/Alpha-Server,xCrystal/Pokemon-Showdown,abrulochp/Dropp-Pokemon-Showdown,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,Kill-The-Noise/BlakJack-Boilerplate,abrulochp/Dropp-Pokemon-Showdown,UniversalMan12/Universe-Server,MayukhKundu/Flame-Savior,Irraquated/Pokemon-Showdown,Celecitia/Plux-Pokemon-Showdown,Flareninja/Pokemon-Showdown-1,MayukhKundu/Technogear-Final,Sora-Server/Sora,FakeSloth/Infinite,KaitoV4X/Showdown,Sora-League/Sora,gustavo515/batata,kuroscafe/Paradox,Alpha-Devs/OmegaRuby-Server,AbsolitoSweep/Absol-server,kuroscafe/Showdown-Boilerplate,DarkSuicune/Pokemon-Showdown,panpawn/Pokemon-Showdown,miahjennatills/Pokemon-Showdown,abulechu/Lumen-Pokemon-Showdown,johtooo/PS,AnaRitaTorres/Pokemon-Showdown,TheManwithskills/COC,Tesarand/Pokemon-Showdown,PauLucario/LQP-Server-Showdown,hayleysworld/Pokemon-Showdown,Pikachuun/Joimmon-Showdown,catanatron/pokemon-rebalance,HoeenCoder/SpacialGaze,ZestOfLife/FestiveLife,SSJGVegito007/Vegito-s-Server,DesoGit/TsunamiPS,svivian/Pokemon-Showdown,yashagl/pokemon-showdown,ehk12/bigbangtempclone,jumbowhales/Pokemon-Showdown,EienSeiryuu/Pokemon-Showdown,Firestatics/Omega-Alpha,Luobata/Pokemon-Showdown,psnsVGC/Wish-Server,KewlStatics/Alliance,Zarel/Pokemon-Showdown,BasedGod7/PH,Johto-Serverr/Werfin-Boilerplate,ZeroParadox/ugh,hayleysworld/Showdown-Boilerplate,xfix/Pokemon-Showdown,Mystifi/Exiled,ankailou/Pokemon-Showdown,danpantry/Pokemon-Showdown,Firestatics/omega,SerperiorBae/BaeShowdown,KewlStatics/Shit,InvalidDN/Pokemon-Showdown,jd4564/Pokemon-Showdown,xfix/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,CharizardtheFireMage/Showdown-Boilerplate,Flareninja/Lumen-Pokemon-Showdown,TheManwithskills/Server---Thermal,javi501/Lumen-Pokemon-Showdown,iFaZe/SilverZ,sama2/Universe-Pokemon-Showdown,forbiddennightmare/Pokemon-Showdown-1,kotarou3/Krister-Pokemon-Showdown,svivian/Pokemon-Showdown,comedianchameleon/servertest1,lFernanl/Lumen-Pokemon-Showdown,iFaZe/SliverX,Enigami/Pokemon-Showdown,Firestatics/Firestatics46,MayukhKundu/Pokemon-Domain,kotarou3/Krister-Pokemon-Showdown,k3naan/Pokemon-Showdown,NoahVSGamingYT/Pokemon-Showdown,panpawn/Gold-Server,scotchkorean27/Pokemon-Showdown,megaslowbro1/Showdown-Server-again,Adithya4Uberz/The-Tsunami-League,Alpha-Devs/OmegaRuby-Server,QuiteQuiet/Pokemon-Showdown,Flareninja/Pokemon-Showdown,Ecuacion/Pokemon-Showdown,sama2/Lumen-Pokemon-Showdown,Flareninja/Pokemon-Showdown-1,asdfghjklohhnhn/Pokemon-Showdown,Mystifi/Exiled,KewlStatics/Showdown-Template,SerperiorBae/Pokemon-Showdown-1,Git-Worm/City-PS,Articuno-I/Pokemon-Showdown,xfix/Pokemon-Showdown,Darkshadow6/PokeMoon-Creation,lFernanl/Lumen-Pokemon-Showdown,Disaster-Area/Pokemon-Showdown,MeliodasBH/boarhat,Zipzapadam/Server,CorruptedHelix/Pokemon-Showdown,hayleysworld/serenityc9,Wando94/Spite,Raina4uberz/Light-server,jd4564/Pokemon-Showdown,ZestOfLife/PSserver,Firestatics/Firestatics46,UniversalMan12/Universe-Server,danpantry/Pokemon-Showdown,Pikachuun/Pokemon-Showdown-SMCMDM,Lord-Haji/SpacialGaze,Flareninja/Showdown-Boilerplate,TheManwithskills/Server,Irraquated/Showdown-Boilerplate,Bryan-0/Pokemon-Showdown,Breakfastqueen/advanced,CrestfallPS/Pokemon-Showdown,Ridukuo/Test2,Sora-Server/Sora,hayleysworld/asdfasdf,UniversalMan12/Universe-Server,comedianchameleon/servertest1,xfix/Pokemon-Showdown,Celecitia/Plux-Pokemon-Showdown,urkerab/Pokemon-Showdown,Flareninja/Sora,javi501/Lumen-Pokemon-Showdown,Pikachuun/Pokemon-Showdown-SMCMDM,TheManwithskills/DS,AvinashSwaminathan/Pokelegends,svivian/Pokemon-Showdown,kupochu/Pokemon-Showdown,DesoGit/Tsunami_PS,megaslowbro1/Pokemon-Showdown-Server-for-megaslowbro1,jumbowhales/Pokemon-Showdown,TheFenderStory/Pokemon-Showdown,DB898/theregalias,JennyPRO/Jenny,NoahVSGamingYT/Pokemon-Showdown,SilverTactic/Pokemon-Showdown,Breakfastqueen/advanced,Sora-Server/Sora,kubetz/Pokemon-Showdown,Pikachuun/Joimmon-Showdown,panpawn/Pokemon-Showdown,Kill-The-Noise/BlakJack-Boilerplate,ankailou/Pokemon-Showdown,AvinashSwaminathan/lotus-v2,Kevinxzllz/PS-Openshift-Server,cadaeic/Pokemon-Showdown,Git-Worm/City-PS,Kokonoe-san/Glacia-PS,ehk12/bigbangtempclone,aakashrajput/Pokemon-Showdown,Alpha-Devs/Alpha-Server,megaslowbro1/Pokemon-Showdown,Atwar/ServerClassroom,Articuno-I/Pokemon-Showdown,bai2/Dropp,urkerab/Pokemon-Showdown,Irraquated/Showdown-Boilerplate,zczd/enculer,Adithya4Uberz/The-Tsunami-League,LightningStormServer/Lightning-Storm,hayleysworld/serenity,Ridukuo/Test2,hayleysworld/serenityserver,megaslowbro1/Showdown-Server-again,SilverTactic/Dragotica-Pokemon-Showdown,MayukhKundu/Technogear,Ridukuo/Test,Checkinator/Pokemon-Showdown,brettjbush/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,TheManwithskills/COC,ShowdownHelper/Saffron,EmmaKitty/Pokemon-Showdown,ShowdownHelper/Saffron,Extradeath/advanced,sirDonovan/Pokemon-Showdown,Enigami/Pokemon-Showdown,abulechu/Dropp-Pokemon-Showdown,yashagl/pokecommunity,Ecuacion/Lumen-Pokemon-Showdown,RustServer/Pokemon-Showdown,SerperiorBae/Bae-Showdown,Ecuacion/Pokemon-Showdown,PS-Spectral/Spectral,azum4roll/Pokemon-Showdown,Wando94/Pokemon-Showdown,psnsVGC/Wish-Server,bai2/Dropp,SerperiorBae/PokemonShowdown2,TheFenderStory/Pokemon-Showdown,Fusxfaranto/Pokemon-Showdown,MayukhKundu/Flame-Savior,KewlStatics/Showdown-Template,KewlStatics/Pokeindia-Codes,ehk12/clone,Irraquated/Pokemon-Showdown,xCrystal/Pokemon-Showdown,panpawn/Gold-Server,johtooo/PS,JennyPRO/Jenny,theodelhay/test,TheManwithskills/Creature-phil-boiler,AustinXII/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,SolarisFox/Pokemon-Showdown,Checkinator/Pokemon-Showdown,Stroke123/POKEMON,SubZeroo99/Pokemon-Showdown,Legendaryhades/Oblivion,Arcticblast/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,TheManwithskills/Dusk--Showdown,Lauc1an/Perulink-Showdown,MayukhKundu/Pokemon-Domain,SkyeTheFemaleSylveon/Pokemon-Showdown,superman8900/Pokemon-Showdown,Flareninja/Sora,kupochu/Pokemon-Showdown,TheDiabolicGift/Showdown-Boilerplate,Hidden-Mia/Roleplay-PS,superman8900/Pokemon-Showdown,Pablo000/aaa,TheManwithskills/Creature-phil-boiler,comedianchameleon/test,RustServer/Pokemon-Showdown,Ridukuo/Test,PrimalGallade45/Lumen-Pokemon-Showdown,arkanox/MistShowdown,lFernanl/Zero-Pokemon-Showdown,Parukia/Pokemon-Showdown,DalleTest/Pokemon-Showdown,Yggdrasil-League/Yggdrasil,ScottehMax/Pokemon-Showdown,MayukhKundu/Technogear-Final,SolarisFox/Pokemon-Showdown,megaslowbro1/Pokemon-Showdown,DalleTest/Pokemon-Showdown,Pokemon-Devs/Pokemon-Showdown,BlakJack/Kill-The-Noise,DarkSuicune/Kakuja-2.0,SilverTactic/Dragotica-Pokemon-Showdown,FakeSloth/Infinite,CreaturePhil/Pokemon-Showdown,SkyeTheFemaleSylveon/Pokemon-Showdown,CorruptedHelix/Pokemon-Showdown,miahjennatills/Pokemon-Showdown,cadaeic/Pokemon-Showdown,kuroscafe/Showdown-Boilerplate,KewlStatics/Shit,Evil-kun/Pokemon-Showdown,lFernanl/Pokemon-Showdown,zek7rom/SpacialGaze,Pikachuun/Pokemon-Showdown,BuzzyOG/Pokemon-Showdown,BadSteel/Pokemon-Showdown,TheDiabolicGift/Lumen-Pokemon-Showdown,DesoGit/Tsunami_PS,piiiikachuuu/Pokemon-Showdown,Extradeath/psserver,comedianchameleon/test,hayleysworld/serenity,CreaturePhil/Pokemon-Showdown,Kevinxzllz/PS-Openshift-Server,sama2/Dropp-Pokemon-Showdown,kubetz/Pokemon-Showdown,Hopenub/Pokemon-Showdown,TheFenderStory/Showdown-Boilerplate,Thiediev/Pokemon-Showdown,KewlStatics/Alliance,xCrystal/Pokemon-Showdown,scotchkorean27/Pokemon-Showdown,brettjbush/Pokemon-Showdown,Evil-kun/Pokemon-Showdown,yashagl/pokemon,abulechu/Lumen-Pokemon-Showdown,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,hayleysworld/Pokemon-Showdown,Disaster-Area/Pokemon-Showdown,Irraquated/EOS-Master,FakeSloth/wulu,lFernanl/Zero-Pokemon-Showdown,urkerab/Pokemon-Showdown,Guernouille/Pokemon-Showdown,SerperiorBae/Bae-Showdown-2,Flareninja/Pokemon-Showdown,piiiikachuuu/Pokemon-Showdown,SerperiorBae/Bae-Showdown-2,KewlStatics/Pokeindia-Codes,Adithya4Uberz/KTN,yashagl/yash-showdown,SerperiorBae/BaeShowdown,Oiawesome/DPPtServ2,Gold-Solox/Pokemon-Showdown,MasterFloat/Pokemon-Showdown,Sora-League/Sora,BuzzyOG/Pokemon-Showdown,LightningStormServer/Lightning-Storm,lAlejandro22/lolipoop,TheManwithskills/serenity,Volcos/SpacialGaze,Atwar/http-server-femalehq.rhcloud.com-80.psim.us-,CreaturePhil/Showdown-Boilerplate,anubhabsen/Pokemon-Showdown,Mystifi/Exiled,HoeenCoder/SpacialGaze,TheManwithskills/Server-2,LegendBorned/PS-Boilerplate,SerperiorBae/Bae-Showdown,MasterFloat/Pokemon-Showdown,JellalTheMage/Jellals-Server,sama2/Viridian-Pokemon-Showdown,ZestOfLife/FestiveLife,Vacate/Pokemon-Showdown,TheFenderStory/Showdown-Boilerplate,BlazingAura/Showdown-Boilerplate,hayleysworld/harmonia,EmmaKitty/Pokemon-Showdown,megaslowbro1/Pokemon-Showdown-Server-for-megaslowbro1,PS-Spectral/Spectral,azum4roll/Pokemon-Showdown,TheManwithskills/Server,Pokemon-Devs/Pokemon-Showdown,TheManwithskills/serenity,AWailOfATail/awoat,LegendBorned/PS-Boilerplate,gustavo515/test,asdfghjklohhnhn/Pokemon-Showdown,Neosweiss/Pokemon-Showdown,TheManwithskills/Server-2,CreaturePhil/Showdown-Boilerplate,arkanox/MistShowdown,Lauc1an/Perulink-Showdown,Chespin14/Custom-Platform-Pokemon-Showdown,AustinXII/Pokemon-Showdown,panpawn/Gold-Server,HoeenCoder/SpacialGaze,ehk12/clone,DB898/theregalias,Ecuacion/Lumen-Pokemon-Showdown,abrulochp/Lumen-Pokemon-Showdown,lAlejandro22/lolipoop,DarkSuicune/Pokemon-Showdown,hayleysworld/serenityserver,zek7rom/SpacialGaze,Lord-Haji/SpacialGaze,Syurra/Pokemon-Showdown,TheDiabolicGift/Showdown-Boilerplate,lFernanl/Mudkip-Server,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,JellalTheMage/PS-,Vacate/Pokemon-Showdown,TheManwithskills/Dusk--Showdown,sirDonovan/Pokemon-Showdown,Enigami/Pokemon-Showdown,SilverTactic/Pokemon-Showdown,Darkshadow6/PokeMoon-Creation,PS-Spectral/Spectral,Zipzapadam/Server,Atwar/ServerClassroom,Enigami/Pokemon-Showdown,PrimalGallade45/Dropp-Pokemon-Showdown,Pablo000/aaa,abrulochp/Lumen-Pokemon-Showdown,SubZeroo99/Pokemon-Showdown,Irraquated/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,Legit99/Lightning-Storm-Server,Pikachuun/Pokemon-Showdown,svivian/Pokemon-Showdown,ShowdownHelper/Saffron,MeliodasBH/Articuno-Land,gustavo515/final,ScottehMax/Pokemon-Showdown,TheManwithskills/Server---Thermal,forbiddennightmare/Pokemon-Showdown-1,Sora-League/Sora,MayukhKundu/Mudkip-Server,yashagl/yash-showdown,Werfin96/Ultimate,CharizardtheFireMage/Showdown-Boilerplate,TheManwithskills/Server-2,PrimalGallade45/Lumen-Pokemon-Showdown,DesoGit/TsunamiPS,LustyAsh/EOS-Master,Irraquated/EOS-Master,SkyeTheFemaleSylveon/Mudkip-Server,MasterFloat/LQP-Server-Showdown,lFernanl/Mudkip-Server,DesoGit/Tsunami_PS,Flareninja/Lumen-Pokemon-Showdown,AvinashSwaminathan/lotus-v3,SerperiorBae/Pokemon-Showdown,ZeroParadox/ugh,AbsolitoSweep/Absol-server,KaitoV4X/Showdown,Extradeath/advanced,Darkshadow6/PokeMoon-Creation,Flareninja/Hispano-Pokemon-Showdown,gustavo515/test,hayleysworld/harmonia,Psyientist/Showdown-Boilerplate,Flareninja/Hispano-Pokemon-Showdown,Kill-The-Noise/BlakJack-Boilerplate,Elveman/RPCShowdownServer,SSJGVegito007/Vegito-s-Server,AnaRitaTorres/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,TheManwithskills/DS,Nineage/Origin,comedianchameleon/test,Guernouille/Pokemon-Showdown,Elveman/RPCShowdownServer,Parukia/Pokemon-Showdown,Neosweiss/Pokemon-Showdown,abulechu/Dropp-Pokemon-Showdown,theodelhay/test,svivian/Pokemon-Showdown,LustyAsh/EOS-Master,ZeroParadox/BlastBurners,lFernanl/Pokemon-Showdown,SerperiorBae/Pokemon-Showdown-1,QuiteQuiet/Pokemon-Showdown,Kenny-/Pokemon-Showdown,MeliodasBH/boarhat,HoeenCoder/SpacialGaze,yashagl/pokemon-showdown,SerperiorBae/Bae-Showdown,ehk12/coregit,SilverTactic/Showdown-Boilerplate,AWailOfATail/awoat,Kokonoe-san/Glacia-PS,Parukia/Pokemon-Showdown,TheDiabolicGift/Lumen-Pokemon-Showdown,Tesarand/Pokemon-Showdown,Atwar/server-epilogueleague.rhcloud.com,InvalidDN/Pokemon-Showdown,Syurra/Pokemon-Showdown,yashagl/pokemon,SerperiorBae/PokemonShowdown2,Volcos/SpacialGaze,yashagl/pokecommunity,gustavo515/final,Lord-Haji/SpacialGaze,Hidden-Mia/Roleplay-PS,ehk12/coregit,TheManwithskills/New-boiler-test,Pikachuun/Touhoumon-Showdown,Ransei1/Alt,TbirdClanWish/Pokemon-Showdown,Atwar/server-epilogueleague.rhcloud.com,Wando94/Pokemon-Showdown,Ransei1/Alt,gustavo515/batata