bug fix in core process exitListeners