Always flush outputStream, regardless of instanceof FileOutputStream