JAL-629 All applications System.exits going through Jalview.exit
[jalview.git] / src / jalview / util / AWTConsole.java
index ab049a3..cf44dcb 100644 (file)
@@ -48,6 +48,8 @@ import java.io.PipedInputStream;
 import java.io.PipedOutputStream;
 import java.io.PrintStream;
 
+import jalview.bin.Jalview;
+
 public class AWTConsole extends WindowAdapter
         implements WindowListener, ActionListener, Runnable
 {
@@ -174,8 +176,7 @@ public class AWTConsole extends WindowAdapter
     } catch (Exception e)
     {
     }
-    System.out.println("Window closing. Bye!");
-    System.exit(0);
+    Jalview.exit("Window closing. Bye!", 0);
   }
 
   @Override