barelease: Improve error handling.