Ensure TimePeriod is deleted when Task is deleted