Fix search window not always closing
Merge pull request #2 from tedle/search-close-fix

Fix search window not always closing