protected void closeSessionInternal(SessionPanel sesspanel) {
   TerminalViewInterface f = getParentView(sesspanel);
   if (f == null) {
     return;
   }
   Sessions sessions = manager.getSessions();
   if ((sessions.item(sesspanel.getSession())) != null) {
     f.removeSessionView(sesspanel);
     manager.closeSession(sesspanel);
   }
   if (manager.getSessions().getCount() < 1) {
     closingDown(f);
   }
 }