close() {
        if (!this.opened) {
            return;
        }