add isclose call close many times