fixes #247
fixes connection lost in other view controllers
Merge pull request #264 from Catrobat/issue-#247

Issue #247