main: remove global exception catch

It is bad form to catch all exceptions globally and then exit the
program because they are nearly impossible to debug.  The global
std::terminate handler has the same behavior as the previous try-catch,
ie. it prints the exception and exits with a bad return code, but it has
the positive of generating a core-dump which can be used for additional
debug.  This way, the core-dump can be analyzed, if needed, to determine
where the exception was raised.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia75ee55562fa588838d16fceca161d57576f7548
diff --git a/app.cpp b/app.cpp
index 482fe8a..84ad870 100644
--- a/app.cpp
+++ b/app.cpp
@@ -25,18 +25,12 @@
 
 int main(int argc, char* argv[])
 {
-    try
-    {
-        phosphor::inventory::manager::Manager manager(
-            sdbusplus::bus::new_system(), INVENTORY_ROOT);
-        manager.run(BUSNAME);
-        exit(EXIT_SUCCESS);
-    }
-    catch (const std::exception& e)
-    {
-        std::cerr << e.what() << std::endl;
-    }
-    exit(EXIT_FAILURE);
+    phosphor::inventory::manager::Manager manager(sdbusplus::bus::new_system(),
+                                                  INVENTORY_ROOT);
+    manager.run(BUSNAME);
+    exit(EXIT_SUCCESS);
+
+    return 0;
 }
 
 // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4