Flushing before close.