release searcher in finally block rather than relying on an exception that is thrown