diff --git a/LCS/Messaging/python/messaging/test/t_RPC.run b/LCS/Messaging/python/messaging/test/t_RPC.run
index 425d6e5804747dd93ce539c2fa49dac358a74d87..ad5c9282acdbdf79106a3feae6db900698a4f257 100755
--- a/LCS/Messaging/python/messaging/test/t_RPC.run
+++ b/LCS/Messaging/python/messaging/test/t_RPC.run
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/sh -le
 
 #cleanup on normal exit and on SIGHUP, SIGINT, SIGQUIT, and SIGTERM
 trap 'qpid-config del exchange --force $queue' 0 1 2 3 15
diff --git a/LCS/Messaging/python/messaging/test/t_messagebus.run b/LCS/Messaging/python/messaging/test/t_messagebus.run
index a4f60936f26653a1b80028b60e0a4092f54ab3d1..9052e1a5742eaf1ac34e17d05bc3a671d5f4efec 100755
--- a/LCS/Messaging/python/messaging/test/t_messagebus.run
+++ b/LCS/Messaging/python/messaging/test/t_messagebus.run
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/sh -le
 
 # Cleanup on normal exit and on SIGHUP, SIGINT, SIGQUIT, and SIGTERM
 trap 'qpid-config del queue --force $queue' 0 1 2 3 15
diff --git a/LCS/Messaging/python/messaging/test/t_messages.run b/LCS/Messaging/python/messaging/test/t_messages.run
index b38b2b90bbc09fa72f5c8fb18ccdfc2a967444ae..e290aa1dff2c19932fdf87124b30c2708624bfdc 100755
--- a/LCS/Messaging/python/messaging/test/t_messages.run
+++ b/LCS/Messaging/python/messaging/test/t_messages.run
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/sh -le
 
 # Run the unit test
 # either with or without code coverage measurements,