public void close(){
    	 try {
             acceptthread.stop();
             if (s != null) {
                 s.close();
                 for (Client c: clients) {
                     c.close();
                 }
             }
             gui.close();
         } catch (IOException e) {
             e.printStackTrace();
         }
     }