Added code to complete the cancellation of a match.