Register error handlers before subscribers.