cleanup error reporting