private void removeFinishedClients(){
  ConnectorHandler client=null;
  while ((client=deadClients.poll()) != null) {
    try {
      client.release(context);
    }
 catch (    Exception e) {
      logger.warn("Failed to release connector handler",e);
    }
    clients.remove(client);
  }
}

private void removeFinishedClients ( ) { ConnectorHandler client = null ; while ( ( client = deadClients . poll ( ) ) != null ) { try { client . release ( context ) ; } catch ( Exception e ) { logger . warn ( "Failed to release connector handler" , e ) ; } clients . remove ( client ) ; } }
clean up terminated clients marked for removal .
