clean up ErrorHandler