added error check if adb cannot be spawned