progressDialog.setRunFinished();
saveModificationUsage();
PeptideShakerGUI.this.dispose();
// @TODO: pass the current project to the new instance of PeptideShaker.
new PeptideShakerWrapper();
System.exit(0); // have to close the current java process (as a new one is started on the line above)
}
}.start();
}