Thank you! Here I just worried about `active` as a first condition of the `close()`