ULearningAgentsRecorder::BeginDestroy

Will automatically call EndRecording if recording is still in-progress when the object is destroyed.