Unregistered task when it is deleted.

Tasks were still receiving time tick updates even when they were deleted. I'm not
entirely sure when the garbage collector comes around to take care of them, but
this will stop them from overclogging with time updates.