Set task to nil after destroy.