Add error handlers to the search