When doing a flush(), IOExceptions are caught but not re-thrown, nor is the return value ever checked.
Bug watches keep track of this bug in other bug trackers.