Ensure that double-closing BlockOutputStream is not harmful.