It might be that we can make it simple enough and simply exit with 1 if an error occurred. That should be enough to know for the calling application, and we can have this PR done (which I think you will like a lot!)