How is an order's cancellation implemented?

See also: