Action after Tab is closed

Hi,

I have a button that opens a new tab with a specific folder on my computer.
Is it possible to intercept when the tab is closed and then to execute internal or external command?

Thank you

Not currently, but it's a possibility for the future which we'll consider.