fix close_op_ctx calls