close redundant window