fixed window listener

now she closes!