Figure 2: Terminating a worker process