--- old/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/QuantumToolkit.java 2014-11-10 17:00:35.000000000 -0500 +++ new/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/QuantumToolkit.java 2014-11-10 17:00:34.000000000 -0500 @@ -337,8 +337,6 @@ QuantumToolkit.this.postPulse(); } catch (Throwable th) { th.printStackTrace(System.err); - // } catch (RuntimeException re) { - // ignore spurious Glass timer events while exiting... } }; pulseTimer = Application.GetApplication().createTimer(timerRunnable); @@ -750,6 +748,9 @@ // This method must run on the FX application thread checkFxUserThread(); + // Turn off pulses so no extraneous runnables are submitted + pulseTimer.stop(); + // We need to wait for the last frame to finish so that the renderer // is not running while we are shutting down glass. PaintCollector.getInstance().waitForRenderingToComplete(); @@ -771,7 +772,6 @@ public void dispose() { if (toolkitRunning.compareAndSet(true, false)) { - pulseTimer.stop(); renderer.stopRenderer(); try {