internal static void End(Container container) { toplevels.Remove (container); if (toplevels.Count == 0) Shutdown (); else Refresh (); }