Merge "init: do not handle control messages after shutdown"
diff --git a/init/init.cpp b/init/init.cpp
index 20b4176..7631964 100644
--- a/init/init.cpp
+++ b/init/init.cpp
@@ -901,7 +901,9 @@
                 (*function)();
             }
         }
-        HandleControlMessages();
+        if (!IsShuttingDown()) {
+            HandleControlMessages();
+        }
     }
 
     return 0;