Got window-destroy finally working