fix a race condition between HeartBeatMonitor.stop and execution