Close streams on finish.