Don't flush in BufWriter destructor after a panic in write
Don't flush in BufWriter destructor after a panic in write

We don't want to write the same data twice.

Closes #30888

graydon/rust,GBGamer/rust,graydon/rust,graydon/rust,graydon/rust,graydon/rust,GBGamer/rust,graydon/rust,aidancully/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,aidancully/rust,aidancully/rust,aidancully/rust,GBGamer/rust