Add a catch \Exception to catch all exceptions