public void removeClosedClients()
    {
        if(clients != null)
        {
            LinkedList<Client> tmp = clients;
            for(Client client : tmp)
            {
                if(!client.isConnected())
                    clients.remove(client);
            }
        }
    }