diff --git a/app/Editor.java b/app/Editor.java index 483be0112..fcf77b41a 100644 --- a/app/Editor.java +++ b/app/Editor.java @@ -1310,6 +1310,10 @@ public class Editor extends JFrame public void handleStop() { // called by menu or buttons if (presenting) { doClose(); + } else if (runtime.window != null) { + // When run externally, kill the applet window, + // otherwise things may not stop properly with libraries. + doClose(); } else { doStop(); }