session_write_close as soon as possible