add reconnect retry for producers
fix npe