Fix crash with lack of destroy() function
Fix crash with lack of destroy() function

PS-Spectral/Spectral,Sora-League/Sora,danpantry/Pokemon-Showdown,xCrystal/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,ShowdownHelper/Saffron,Enigami/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,xCrystal/Pokemon-Showdown,xfix/Pokemon-Showdown,svivian/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,Lord-Haji/SpacialGaze,Mystifi/Exiled,AustinXII/Pokemon-Showdown,Enigami/Pokemon-Showdown,ShowdownHelper/Saffron,AWailOfATail/Pokemon-Showdown,urkerab/Pokemon-Showdown,Mystifi/Exiled,ShowdownHelper/Saffron,Mystifi/Exiled,Enigami/Pokemon-Showdown,danpantry/Pokemon-Showdown,urkerab/Pokemon-Showdown,DesoGit/Tsunami_PS,xfix/Pokemon-Showdown,Lord-Haji/SpacialGaze,xfix/Pokemon-Showdown,HoeenCoder/SpacialGaze,svivian/Pokemon-Showdown,Zarel/Pokemon-Showdown,Sora-League/Sora,DesoGit/Tsunami_PS,CreaturePhil/Showdown-Boilerplate,svivian/Pokemon-Showdown,Zarel/Pokemon-Showdown,HoeenCoder/SpacialGaze,AustinXII/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,panpawn/Pokemon-Showdown,Lord-Haji/SpacialGaze,aakashrajput/Pokemon-Showdown,panpawn/Gold-Server,aakashrajput/Pokemon-Showdown,PS-Spectral/Spectral,PS-Spectral/Spectral,CreaturePhil/Showdown-Boilerplate,Zarel/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,AustinXII/Pokemon-Showdown,HoeenCoder/SpacialGaze,CreaturePhil/Showdown-Boilerplate,DesoGit/Tsunami_PS,xfix/Pokemon-Showdown,panpawn/Gold-Server,QuiteQuiet/Pokemon-Showdown,HoeenCoder/SpacialGaze,svivian/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,Sora-League/Sora,sirDonovan/Pokemon-Showdown,panpawn/Gold-Server,urkerab/Pokemon-Showdown,svivian/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,panpawn/Pokemon-Showdown,xfix/Pokemon-Showdown,Enigami/Pokemon-Showdown,xCrystal/Pokemon-Showdown