QPID-4674: Detect asynchronous connection close, session end and link detach. Merged from r1462138.

git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.22@1463175 13f79535-47bb-0310-9956-ffa450edef68