Waiting for Puppeteer requests and responses without leaking listeners
An Electron collector needed request headers and file information before it could continue. A closure collected the values, while a Promise ended the wait and cleaned up the listeners.
