Always ensure writers are flushed.