fix stream may not be closed when reading crash occured