Pause heartbeat sender when handling network connection interruption

[ci skip]