[sr-dev] git:master:6da946e4: core: keep a global flag in shm for shut down phase