Cleaner error handling/reporting.