fixing type in node.js worker.kill()