corrected behaviour of cleanup in wye, now wye correctly waits for cleanup from L/R to complete before finishing