public void Stop() { _proxy.Stop(); try { _fromSocket.Unbind(_fromAddress); } catch (ObjectDisposedException) { // Ignored } _fromSocket.Close(); _fromSocket.Dispose(); try { _toSocket.Unbind(_toAddress); } catch (ObjectDisposedException) { // Ignored } _toSocket.Close(); _toSocket.Dispose(); }