public static void stopMain() {
   if (log != null) log.close();
 }
 public void stop() {
   outlog.close();
   inlog.close();
   gracz.stop();
 }