bug fix : close nuxeo session if new session is need.