Fixing issue when ztask_node is killed by 'kill -9 <pid>'