cluster: clear stream on failure to write.