added DefaultErrorReporter with client shutdown handling