here we can use the same approach used in the updateApp callback and pass the error as an optional callback first parameter (and often used in the nodejs async code callbacks)

    let error = ...
    callback(error);

and let the callback to handle success/error cases (e.g. what/how to report the result to the user)