Fix disconnecting nodes due heartbeat messages.