code: function handle(cb) {
    return function(e, ...rest) {
      if (e) {
        console.error(e);
        process.exit(1);
      } else {
        cb && cb(...rest);
      }
    }
  }
docs: Default handler function wrapper for all docker responses.
  This wrapper will automatically exit on error with the message printed, or call the callback function
  (if set) with the rest, non-error arguments.
  @param {Function} [cb] The callback function to be called if no error occurred
  @returns {Function} The handler function to be called by the docker lib