protected override void OnExiting(object sender, EventArgs args) { // call dispose to abort all threads/activity for entire game library (GardenItems) if (GameLib != null) { GameLib.Dispose(); } base.OnExiting(sender, args); }