JAL-3690 - introduce shutdown method that cleans up manager's resources.
[jalview.git] / src / jalview / bin / Jalview.java
index 08b4a1b..f5b092d 100755 (executable)
@@ -774,6 +774,10 @@ public class Jalview
           System.out.println("Unknown arg: " + aparser.nextValue());
         }
       }
+      if (headless)
+      {
+        af.getViewport().getCalcManager().shutdown();
+      }
     }
     AlignFrame startUpAlframe = null;
     // We'll only open the default file if the desktop is visible.