Trycatch in temporary search controller