code: protected void destroyAndRemoveConnectionListener(ConnectionListener cl, Collection<ConnectionListener> listeners)
     {
        try
        {
           pool.destroyConnectionListener(cl);
        }
        catch (ResourceException e)
        {
           // TODO:
           cl.setState(ZOMBIE);
        }
        finally
        {
           listeners.remove(cl);
        }
     }
docs: Destroy and remove a connection listener
  @param cl The connection listener
  @param listeners The listeners