add close property/fix build error