Fixed the SharedQueue closed exception

http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2011-March/012026.html