Prevents any more tasks from being submitted to the pool. Once all the tasks have been completed the worker processes will exit.
multiprocessing.pool/Pool.close
Pool.close