properly close config dialog and check for unrecorded search