the popup window can't be destroyed without manually closing it right?
also, I think I found a workaround for the the mouse thing
you create a pointer sprite, invisible if you wish, give it mouse behavior
and instead of (object clicked)
you do a
(left mousebutton clicked)
(object overlapping at offset (0-layout.x,0-layout.y))
doesn't work with popup window...nothing does