Added task cancelling to force cancel the task when a player packet is completed