Dismiss window when web console is opened