Fixes Node shutdown and death.