if there is no xmpp session, then still set pid to term session