@benbjohnson Right. But previous we also release the lock here. We can not hold the lock while stopHeartbeat.