error release order in func xio_on_context_close