Windows support for workerCleanup method.