public void exit(final AxisID axisID, final int exitValue) { // Store the current location of the frame in case etomo exits. if (isHead()) { mainFrame.saveLocation(); EtomoFrame subFrame = mainFrame.getOtherFrame(); if (subFrame != null) { subFrame.saveLocation(); } } // Check to see if etomo an exit, save data, and then exit. if (EtomoDirector.INSTANCE.exitProgram(axisID)) { System.err.println("exitValue:" + exitValue); System.exit(exitValue); } }