Fix possible race condition on closing results window.
Fix possible race condition on closing results window.

TautvydasZilys/FileSystemSearch,TautvydasZilys/FileSystemSearch,TautvydasZilys/FileSystemSearch