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

Fixing remaining ios71 tests
ci gappium branch for build #4496.5