Fix Bug Where Appium Crashes after Running for Hours

Closing my FileHandles
Merge pull request #130 from penguinho/master

Fix #119 Appium Crashes After Running for Hours