Producer Error handling

I am developing a C# producer. I want my producer to stop sending messages when Kafka is in error mode and resume sending messages when error state is resolved. I can hook into errors by passing an action into SetErrorHandler. I can also handle Kafka logs using SetLogHandler. I need a handler that will alert me when Kafka is healthy. Is there anything like SetRecoveryHandler? How can I check if Kafka is ready to receive messages?