public void OnClose (object sender, EventArgs e) { // The module dtor will take care of things module = null; } }