add try-catch for first steps of error handling in SearchController