code: public void leave(Address address)
     {
        if (trace)
           log.tracef("leave(%s)", address);
  
        Map<Address, Long> sr = shortRunning.get(address.getWorkManagerId());
  
        if (sr != null)
        {
           sr.remove(address);
  
           if (!sr.isEmpty())
           {
              shortRunning.put(address.getWorkManagerId(), sr);
           }
           else
           {
              shortRunning.remove(address.getWorkManagerId());
           }
        }
  
        Map<Address, Long> lr = longRunning.get(address.getWorkManagerId());
  
        if (lr != null)
        {
           lr.remove(address);
  
           if (!lr.isEmpty())
           {
              longRunning.put(address.getWorkManagerId(), lr);
           }
           else
           {
              longRunning.remove(address.getWorkManagerId());
           }
        }
     }
docs: {@inheritDoc}