Handle cancel in open dialog