if the OutputStream closes, don't keep trying to feed bytes into it