Added code to restart adb server if android emulator lost connection to device.