Call the leaderClient.heartbeat periodically in background thread