private void MainForm_FormClosed(object sender, FormClosedEventArgs e) { // close the fetcher so it can close it's sessions with the servers try { fetcher.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void MainForm_FormClosed(object sender, FormClosedEventArgs e) { // close the fetcher so it can close it's sessions with the servers try { fetcher.Close(); } catch (Exception ex) { // nothing to do here, just catch the exception and hide it from the user } }