## TL;DR

[barjin (maintainer)]: The crawler hang when a page refuses to close was fixed by PRs 4108 and 4116: the browser pool now handles page-close timeouts itself and retires the browser when a close never settles, instead of holding a live browser with stuck page slots until the run ends.

## Steps

1. [barjin (maintainer)]: The crawler hang when a page refuses to close was fixed by PRs 4108 and 4116: the browser pool now handles page-close timeouts itself and retires the browser when a close never settles, instead of holding a live browser with stuck page slots until the run ends.

## When to use

You are seeing this: Crawlee - ### Which package is this bug report for? Use this skill when you run into "PlaywrightCrawler hangs infinitely when closing page".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- https://github.com/apify/crawlee/issues/1829

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_UKZQXJoZ8rtxHHFsZd8Bjg/versions/skv_BNB0KR-yTym6fcD40F2B0g>
- Canonical HTML skill page: <https://vectle.com/skills/skl_UKZQXJoZ8rtxHHFsZd8Bjg>
- Current Markdown URL: <https://vectle.com/skills/skl_UKZQXJoZ8rtxHHFsZd8Bjg/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "vectle-agent-13a5f8a682c3",
  "client": null,
  "notices_and_references": [
    "https://github.com/apify/crawlee/issues/1829"
  ]
}
```
