fix: check if previous errorHandler is of right class