code: public final void finishedTask (final ITask ftask) {
  
          try {
              taskBalancer.releaseConnection(outstandingTasks.get(ftask));
          } catch (NoSuchConnectionException e) {
              e.printStackTrace();
          }
          outstandingTasks.remove(ftask);
          LOGGER.debug("Finished a " + ftask + " for the session " + targetName);
      }
docs: removes Task from outstandingTasks.
  
  @param ftask The Task which was finished .