SONAR-4535 Close session when adding a new profile