KnuBot close window fix (when client closes the window)