Support env set of spawn
Fix listener not remove by  child process