rem: be_app->PostMessage (B_QUIT_REQUESTED); return true;
add: BMessage  *QuitMessage; team_info  RemoteInfo; BMessenger RemoteMessenger; team_id    RemoteTeam;    QuitMessage = CurrentMessage (); if (QuitMessage != NULL && QuitMessage->IsSourceRemote ()) { RemoteMessenger = QuitMessage->ReturnAddress (); RemoteTeam = RemoteMessenger.Team (); if (get_team_info (RemoteTeam, &RemoteInfo) == B_OK && strstr (RemoteInfo.args, "registrar") != NULL) g_QuitCountdown = 0; }  if (g_QuitCountdown == 0) return BApplication::QuitRequested ();  if (g_QuitCountdown < 0) g_QuitCountdown = 10;   return false;
context: bool DatabaseWindow::QuitRequested (){  be_app->PostMessage (B_QUIT_REQUESTED);  return true;}