Extend to support contract cancellation.