Clock still run when ticket closed

Hi Everyone,

 

Could you please help me, i have requirement to tracking assignment group for each incident tickets. I have configured macros to meet the requirement, but why the clocks is running where incident tickets closed.

Is there any missing configuration on my macros? Please help, i will appreciate it.

 

Best Regards,

Okik Setianto