Thread was being aborted

Lately I have been encountering crashes during running actions, usually it’s python. It’s executed late in build process, too many logs ?

I don’t see any event log entries for this.

Even though action itself finishes with success, this error at the beginning of the script is shown, script finished and action is set to failed.

I believe we have found a possible cause for this - and a fix - however it’s going to take a while to figure out a test scenario for this - we need to be able to reproduce it so we can confirm the fix.