Made tasks interrupt upon closing the worker.