sometimes (very hard to reproduce...) the MQTT client disconnects from broker (RabbitMQ) with an error code 1000.
My services must be up 24/7 and I use the "Ping" to know if MQTT is up while publishing. Indeed, the "Publish" method don't give an exception when the MQTT client is disconnected. My re-connection system is a bit complex but I think I am doing something wrong with MQTT client.
I can't give you any other info, so I hope this can be useful to give me some "hints" to try in my program.