cleanup on processHeartbeat