Fix for f4d7d2831f3dc03dc495aa504f18abe27e0d70f0 corrected changes for --fail flag for activemq jobs