static void ClosingSafely() { powerSHAPE.FormUpdateOn(); powerSHAPE.RefreshOn(); powerSHAPE.DialogsOn(); }