Leftovers Gas is eventually captured or pushed out by wind from the star, but dust and planetesimals are left around.