Don't close streams prematurely.