started on write_close