private void Session_Disconnected(object sender, EventArgs e) { if (this.Disconnected != null) { this.Disconnected(this, new EventArgs()); } this.RaiseError(new SshException("Connection was lost")); }