waitClose = (proc) => {
  return new Promise((resolve) => {
    proc.on('close', () => {
      resolve();
    });
  });
}
@param {import('child_process').ChildProcessWithoutNullStreams} proc
@returns {Promise<void>}