Added catch block in exception handler controller to hopefully prevent stack overflows.