fixed node issue where process.on("exit") no longer works under windows.