made task statuses dependent destroy on memberships