close new window doesnt break donewindow clicks