Fix zombie process problem. "switching" flag did not clear when invalid node ID was detached.
Fix zombie process problem. "switching" flag did not clear when
invalid node ID was detached.

treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres