fixing tests
mitigating against redundant/late session closing
Merge pull request #2624 from sebv/master

Fixing remaining ios71 tests
ci ios branch for build #4496.2