Clean up Stream.