examples: close /all/ connections.
Expected failures must have a call to fail(msg), + some clean up
HORNETQ-1202 Fix crash on concurrent modifications. Notice that just making 'matches' a ConcurrentHashMap does not solve it.
https://bugzilla.redhat.com/show_bug.cgi?id=964129

We could have a race between the state of matches and the cache:
Thread1: addMatch(): i. clean cache; ii. add match to Map
Thread2: could add an (outdated) entry to the cache between 'i. clean cache' and
'ii. add match to Map'.
Merge pull request #1072 from FranciscoBorges/master

Fix concurrent modification exeption JIRA/BZ
https://bugzilla.redhat.com/show_bug.cgi?id=922204 - synchronize createSession