/* try{ clientesActivos.removeElement(this); String historial="C:"+File.separatorChar+"historial.txt"; PrintWriter salidaArchivo=new PrintWriter(new BufferedWriter(new FileWriter(historial,true))); salidaArchivo.println("Desconexion desde la direccion: "+s.getInetAddress().getHostName()+" por el puerto "+s.getPort()); salidaArchivo.close(); }//fin de try catch(IOException e2){ JOptionPane.showMessageDialog(null,"Fallo en el historial"); }//fin de catch finally{ clientesActivos.removeElement(this); } try{ s.close(); }//fin de try catch(Exception e3){ //JOptionPane.showMessageDialog(null, "No se ha podido cerrar el socket",JOptionPane.WARNING_MESSAGE); JOptionPane.showMessageDialog(null,"No se ha podido cerrar el socket"); }//fin de catch }//fin ...