print write failures to STDERR, if nobody is watching for them, rather than silently discarding them and closing the stream