[#3036] RecordListeners don't receive "end" events when exceptions occur