Replace n_libevent_errors logic with a rate-limiter.