QPID-2239: make sure the close() does not hand.

Also handle authentication failures properly, QPID-2240.

Patch by julien.lavigne

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@893315 13f79535-47bb-0310-9956-ffa450edef68
16 files changed