take into account that the task might have been removed from when the query was ran.