public void windowClosing(WindowEvent w) {
exitProgram();
}
public void exitProgram() {
new DashboardPermission("exitProgram").checkPermission();
Thread shutdownThread = new Thread("Application Shutdown Thread") {
public void run() {
synchronized (exitProgramSyncToken) {
exitProgramImpl();