Close stream after read.