fix error in searcher while server's shutdown