Setting searchRunning to false in catch clause