title: Puppeteer doesn't close browser
body: <p>I'm running puppeteer on express/node/ubuntu as follow:</p>
  
  <pre><code>var puppeteer = require('puppeteer');
  var express = require('express');
  var router = express.Router();
  
  /* GET home page. */
  router.get('/', function(req, res, next) {
      (async () =&gt; {
          headless = true;
          const browser = await puppeteer.launch({headless: true, args:['--no-sandbox']});
          const page = await browser.newPage();
          url = req.query.url;
          await page.goto(url);
          let bodyHTML = await page.evaluate(() =&gt; document.body.innerHTML);
          res.send(bodyHTML)
          await browser.close();
      })();
  });
  </code></pre>
  
  <p>running this script multiple times leaves hundred of Zombies:</p>
  
  <pre><code>$ pgrep chrome | wc -l
  133
  </code></pre>
  
  <p>Which clogs the srv,</p>
  
  <p>How do I fix this?</p>
  
  <p>Running <code>kill</code> from a Express JS script could solve it?</p>
  
  <p>Is there a better way to get the same result other than puppeteer and headless chrome? </p>