Call process.exit() to terminate worker process