Map the close button to the cancel action.