Clean up children properly.