factory_install: Reboot if the process is failed and terminated

The prompt will be shown if the installer process is failed. The DUT can
be rebooted by pressing any keys.

BUG=None
TEST=manual test on DUT

Change-Id: I7abbbfbc8b0dd861ca4ad76b197de7bad05d8d58
Reviewed-on: https://chromium-review.googlesource.com/1806639
Tested-by: Kevin Lin <kevinptt@chromium.org>
Commit-Ready: Kevin Lin <kevinptt@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Cheng-Han Yang <chenghan@chromium.org>
diff --git a/factory_install.sh b/factory_install.sh
index aa9792e..61d986d 100644
--- a/factory_install.sh
+++ b/factory_install.sh
@@ -142,6 +142,10 @@
     explain_cros_debug
   fi
 
+  colorize white
+  read -N 1 -p "Press any key to reboot... "
+  reboot
+
   exit 1
 }