fix spawn exit event when node <= 0.6