Calling Session#close() on a session which is still in the process of receiving messages can result in the following error message to the client log:
Dispatcher-Channel-1 2012-01-25 22:44:25,298 ERROR [apache.qpid.thread.LoggingUncaughtExceptionHandler] Uncaught exception in thread "Dispatcher-Channel-1"
java.lang.IllegalStateException: dispatcher is not started
The problem is longstanding issue, but has probably become more noticeable since
QPID-1670 which introduced a uncaught exception handle that directs such errors to SLF4J (rather than stderr). Our tests in general don't show the issue because they tend to consume all the tests message.