finish memory_stream