Better working 'close window.'