Ensure the connected state gets set to false when it should and also
ensure that the failure tests wait for the JmsConnection to make its way
into the correct state as it all happens async.
Merge branch 'master' into amqp-only