delete second "this.close()"