text: // pass back all messages as is
  // (except for errors and logs)
  
  module.exports = function (cb) {
  
    return {
      message: message => {
  
        if(message.type === 'error') {
          cb(message.error);
        }
  
        else
          cb(null, message);
  
      },
      exit: status => {
        if(status !== 0)
          cb('Child process has died.');
        else
          cb(null, { done: true });
      }
    }
  }