Windows support for workerCleanup. Fixes #33