code: public void logout() throws Exception {
      Api apiResult = getActionResult("logout", "", null, null);
      if (apiResult != null) {
        userid = null;
        // FIXME check apiResult
      }
      if (cookies != null) {
        cookies.clear();
        cookies = null;
      }
    }
docs: end the session
  
  @throws Exception