private void session_ConnectionClose(object sender, ConnectionCloseEventArgs e) { if (e.LastException != null) { logger.Debug("{0} session been close: {1}", _connectionToken.Substring(0, 6), e.LastException.Message); } //close the last processor if (_lastProcessor != null) { _lastProcessor.Close(); } SessionClose(this, EventArgs.Empty); }