[JBIDE-14388] fix for detecting running emulator

adb occasionally does not return the running emulator instance
correctly. The only workaround to the problem is restarting the adb
server. Added restart to all the adb related commands.