Fix enabling production mode outside launcher

Add a way to force an application shutdown when current app is not the
launcher. Without this, clicking to enable production would do nothing when
inside any app.

Change-Id: I0f22c08a75b684d01e150de8feb4a760a2c77527