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

Fixing remaining ios71 tests
ci android branch for build #4496.3