Stream destructors close file handles