Directory search query can now be canceled, fixes #39