fix close return type