Cleaning up error reporting.