w = undefined;
If you set the worker variable to undefined, after it has been terminated, you can reuse the code.
Clickable & Draggable!