33 try { 34 sockets.forEach((sock) -> sock.close()); 35 server.close(); 36 } catch(IOException e) { 37 System.out.println(e.getMessage()); 38 }