currentStream.flush();
outputLocked = true;
streamList.remove(currentStream);</BUG>
}
public void close() throws IOException {
<BUG>currentStream.flush();
doClose();</BUG>
currentStream.close();
<BUG>maybeDeleteTempFile(currentStream);
postClose();</BUG>
}

currentStream.flush();
}
public void close() throws IOException {
currentStream.close();
}
