Changed cancel into close.