Make adb restart API wait until result comes, and return useful message.