Otherwise the Heartbeat task will just stay there and not be cleaned up, which may cause OOM eventually.