onExit = (quit, code) => {
  if (onExitCalled) return;

  onExitCalled = true;
  onExitCallbacks.forEach(fn => fn());

  if (quit === true) {
    process.exit(128 + code);
  }
}
Get a value from the given object.
@param {Object} obj
@param {String} prop