On `close`, do nothing if already closed.