private void Cleanup(object sender, FormClosingEventArgs e) { if (FSOUI != null) { //todo: probably need to be careful we don't remove things in progress //also cleanup the batch and stuff GameFacade.Screens.RemoveExternal(FSOUI); } }