Potential fix for web worker not initializing properly after restart