Improve JMS Test

Loop sleeping 100ms for up to 10s instead of a hard sleep of 1s.

Stop the gateway in a finally block.
INT-3257 Make AggXmlMValidationEx more convenient

JIRA: https://jira.springsource.org/browse/INT-3257