Ignore NotSupportedException thrown by BufferedStream writes

The issue seems to be an unfortunate buffered stream behaviour
aspect when there's data to read and a write is attempted.

Since this exception is very confusing and our intent is to shut
down anyway, we ignore it.
Merge bug25046 into stable
merge stable into default