session_write_close support