public void exit(){
  shuttingDown=true;
  saveSettings(true);
  logAllViewerstats();
  c.disconnect();
  frankerFaceZ.disconnectWs();
  pubsub.disconnect();
  g.cleanUp();
  chatLog.close();
  System.exit(0);
}

public void exit ( ) { shuttingDown = true ; saveSettings ( true ) ; logAllViewerstats ( ) ; c . disconnect ( ) ; frankerFaceZ . disconnectWs ( ) ; pubsub . disconnect ( ) ; g . cleanUp ( ) ; chatLog . close ( ) ; System . exit ( 0 ) ; }
exit the program . do some cleanup first and save stuff to file ( settings , addressbook , chatlogs ) . should run in edt .
