If you run a puppeteer script with docker and the docker was hang. It’s probably because your browser is still running, you might have some exceptions that cause your script never reaches to the line where you close the browser.

We need to make sure that these lines below should be always run at the end:

//await har.stop(); //if you collect har file
await browser.close();