Cleanup the worker.