code: public final void closeSession (final String targetName) throws NoSuchSessionException , TaskExecutionException {
  
          getSession(targetName).logout();
          // TODO Test the removal from the map.
          sessions.remove(targetName);
  
          LOGGER.info("Closed the session to the iSCSI Target '" + targetName + "'.");
      }
docs: Closes all opened connections within this session to the given target.
  
  @param targetName The name of the target, which connection should be closed.
  @throws NoSuchSessionException if no session is accessible
  @throws TaskExecutionException if logout fails.