Macro: Remove Unused Media + Empty Trash, causes crash error

Macro: Remove Unused Media + Empty Trash, causes crash error.

It only happens sometimes, I’m trying to find the replicated cause. It doesn’t cause a total program crash/freeze, it just brings up that Cubase error box where it gives you a chance to save.

can someone else test this? And test it in 9 as well?