Remove the task from the hashMap once the task is run, can't cancel otherwise.

Signed-off-by: moose51789 <moose51789@gmail.com>