Knime workflow crashes after "completion", java error code 30

After KNIME removed the Batch Automation functionality from the free version, I had to switch to the NodePitBatchExecutor extension. I have updated my .bat files accordingly, but I am running into some unexpected behaviour.

The workflow itself appears to run successfully and completes all the tasks it is supposed to perform. However, once the workflow finishes, I get a large Java error dump with exit code 30. Unfortunately, the error output does not seem to indicate what actually went wrong.

The strange part is that the workflow does complete successfully from a functional perspective, all expected files are created and all subsequent steps appear to have been executed. So in a way, the task "fails successfully."

The bigger problem is that KNIME remains open after the batch job finishes. Because the KNIME process is still running, the next scheduled KNIME batch job cannot start correctly.

Below errors that I get in the commandline when manually running the workflow. and attached part of the java error.

Any advice/help will be greatly appreciated.

ERROR    KNIME-Worker-7-Send Email 3:3824 Node   Execute failed: The KNIME AP does not have the permissions to read the file attachment at file:/C:%5CUsers%5Cuser.name%5CCompany%5CData_Ecommerce%20-%20Documenten%5CWebshop%5Cuser.name_Knime%5CWeekly_uit%5Ctemp%5Cuitlooplijst.xlsx.

java.io.IOException: The KNIME AP does not have the permissions to read the file attachment at file:/C:%5CUsers%5Cuser.name%5CCompany%5CData_Ecommerce%20-%20Documenten%5CWebshop%5Cuser.name_Knime%5CWeekly_uit%5Ctemp%5Cuitlooplijst.xlsx.