Add dead window detection for the shared web worker.