function onEnd(resultOrErr) {
    const signal = resultOrErr.signal || '';
    const { code } = resultOrErr;
    const action = signal ? `terminated with ${signal}` : `exited with code #${code}`;

    _logger.debug({ event: 'SPAWN_END', signal, code }, `${command} ${action}`);
  }
@param {import('promisify-child-process').Output} resultOrErr