/** * Function: OnDestroy() * Purpose: * Kills the threads running the IRC and PING functions. * * */ public void OnDestroy() { _irc.PartChannel(); _pingSender.Stop(); _chatGetter.Stop(); }