docs: public void removeFromApplication(boolean bFreeIfDone)
      {
          if (m_application == null)
              return; // In free.
          Application app = m_application;
          m_application = null;
          boolean bEmptyTaskList = app.removeTask(this);    // Remove this session from the list
          if (bFreeIfDone)
              if (bEmptyTaskList)
                  app.free();     // No more tasks -> Quit app!
      }