'How can I stop zombie processes from being left behind by Puppeteer without --no-sandbox?

I don't want to use --no-sandbox for security reasons, but without it, I can't use --no-zygote which is the only solution I could find to prevent zombie process from being created. How can I achieve the same goal of cleaning up zombie processes without --no-sandbox? I know about dumb-init, but I want to know if there is a way to keep the processet from becoming zombies in the first place.

The zombie processes left behind are like this

$ ps aux | grep chrome | head -n 10
app         60  0.0  0.0      0     0 ?        Z    Mar24   0:00 [chrome_crashpad] <defunct>
app         65  0.0  0.0      0     0 ?        Z    Mar24   0:00 [chrome] <defunct>
app         66  0.0  0.0      0     0 ?        Z    Mar24   0:00 [chrome] <defunct>
app         82  0.0  0.0      0     0 ?        Z    Mar24   0:00 [chrome] <defunct>
app        163  0.0  0.0      0     0 ?        Z    Mar24   0:00 [chrome] <defunct>
app        179  0.0  0.0      0     0 ?        Z    Mar24   0:00 [chrome_crashpad] <defunct>
app        184  0.0  0.0      0     0 ?        Z    Mar24   0:00 [chrome] <defunct>
app        185  0.0  0.0      0     0 ?        Z    Mar24   0:00 [chrome] <defunct>
app        202  0.0  0.0      0     0 ?        Z    Mar24   0:00 [chrome] <defunct>
app        285  0.0  0.0      0     0 ?        Z    Mar24   0:00 [chrome] <defunct>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source