in mr-rpc-methods, rejectOnError common handler for callbacks would help a lot, for example on https://github.com/capaj/Moonridge/blob/master/mr-rpc-methods.js#L634