public void unregister(String name) throws IOException {
        if (name == null) {
            return;
        }
        Network handler = clients.remove(name);
        broadcast(new Message("", name + " disconnected."));
        System.out.println(name + " disconnected.");

    }