Running a script, when caller hangs up while waiting in the queue

Hi,
I’d like run a script when a caller, which is waiting in a queue, hangs up.
Does anybody have an idea how and where to add that in the dialplan?

Thanks,

Leiste

is there no way to do that?
Thanks…