fixing heartbeats and potential disconnects during publishing