async close stream