allow a session to be quited() from a server event, and fix WDialog escape button behavior