Merge "Destroy dep tree on RecentsView detached. This prevents leaks." into main