Update worker.js

kill child process when master already gone