I came across sun.awt.AWTAutoShutdown, which I only did by happenstance, and now Euclid doesn't not exit when closing. Which was a long-standing issue.
The problem? I called JOptionPane.showInternalConfirmDialog instead of JOptionPane.showConfirmDialog. #Java #AWT