added special protocol for window exits