Solved cancelAction

add timerId global array and timers object defining indexes
moved worker reference