Retry restarting adb

When "wait-for-device" or "echo 'ready'" fails, retry. This bypasses a periodic protocol error when calling these.