public static void Stop() { if (toplevels.Count == 0) return; toplevels [toplevels.Count-1].Running = false; MainLoop.Stop (); }