Close the streams