Failed Task History

We are migrating from Activiti 5.15 to Flowable 6.

In version of Activiti 5.15.1 whenever a process failed, we used to grab additional info from ACT_HI_ACTINST table to display the task which actually failed.

In later version of Flowable 6/Activiti 6 - we observed ACT_ HI_ACTINST holds all task except the one which failed.

Could you please let me know a cleaner way for fetch job failure along with more information about the failure (ex. task which generated the failure)?
(Note - currently we have changed the code to query deadletter table and we can get the job information but not the task which failed - task which failed is an async script task)

Below is my process definition wherein script task explicitly throws an error.

    <scriptTask id="scripttask1" name="Throw BpmnError" activiti:async="true" scriptFormat="groovy" activiti:autoStoreVariables="false">
        <script>import org.activiti.engine.delegate.BpmnError;

            throw new BpmnError("Manually throwing a BpmnError to cause this process to fail.");</script>
    </scriptTask>
    <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="scripttask1"></sequenceFlow>
    <sequenceFlow id="flow2" sourceRef="scripttask1" targetRef="endevent1"></sequenceFlow>
</process>

Hi,

failed jobs are stored in a dead letter queue

Regards
Martin