write_stream_list(): Cleanup