CA-141364: Handle errors during domain build