Rhino window close event

Grasshopper starts to perform cleanup and last-ditch saving UI in response to a call placed to OnShutdown method of the plugin class.

    protected override void OnShutdown()
    {
      try { Grasshopper.Plugin.GH_PluginUtil.SaveSettings(); }
      finally { }

      try { Grasshopper.Plugin.GH_PluginUtil.UnloadGrasshopper(); }
      finally { }
    }