Fix bug with missing process.exit for windows