<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def close(self):
 """ Tell all the workers to quit."""

        if self.is_worker():
            return

        for worker in self.workers:
            self.comm.send(None, worker, 0)