rabbitmq/rabbitmq-dotnet-client — pull request #7 by occ (2011-12-12 17:37:53+00:00)
Title: SocketFrameHandler_0_9 can cause connection thread to crash

When using .NET 4.0 SocketFrameHandler_0_9.Close() can throw ObjectDisposedException.
Apparently, TcpClient.Close() calls this.Dispose(), which causes the issue.

This patch simply handles the exception and ignores it, since the socket is already closed.