Catch the exception when sending the IPMI response message

Change-Id: Ib233a797dc13499670c35e21497f8c13c9d74e04
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/main.cpp b/main.cpp
index 89ef15c..d96d1cd 100644
--- a/main.cpp
+++ b/main.cpp
@@ -90,8 +90,16 @@
         return 0;
     }
 
-    // Send the response IPMI Message
-    msgHandler.send(*(outMessage.get()));
+    try
+    {
+        // Send the response IPMI Message
+        msgHandler.send(*(outMessage.get()));
+    }
+    catch (std::exception& e)
+    {
+        std::cerr << "Flattening & Sending the outgoing IPMI message failed\n";
+        std::cerr << e.what() << "\n";
+    }
 
     return 0;
 }