don't stop agent after sending first (or several) heartbeats

This was a regression as previously SendPeriodicHeartbeat was a long
running call.