Fix leaking heartbeat greenlet in eeagent test