Added a hack to delay the shutdown of ActiveMq test endpoints so that
messages in flight can complete. This can be removed when change the AMQ
transport to shutdown gracefully