Closing stream after copy.