Why not close() instead of flush()?