[TIMOB-17344] Fixed a bug with the buffer not being reset after an adb c...

...ommand fails. Also fixed a bug where Genymotion emulators with stale ip addresses were detected as running even if they weren't.