Fixing AMQ-4892: MQTT clients disconnecting due to socket error do not publish the configured last will and testament message.