/// <summary> /// Clean up the leftovers /// </summary> public override void OnReleased() { try { // Make sure we reset the notification sound back to normal, or we might really screw something up ChirpPanel cp = ChirpPanel.instance; if (cp != null) cp.m_NotificationSound = null; // Make sure the Irc client is really gone so it releases the Irc port if (IrcClient != null) IrcClient.Dispose(); IrcClient = null; } catch (Exception ex) { Logger.AddEntry(ex); } }