protected override void OnClosing(CancelEventArgs e)
{
base.OnClosing(e);
Log.Write(this, "Closing");
/*
* Note that on OS X, windows usually close, but the application will keep running. It is
* usually better to handle the Application.OnTerminating event instead.
*
var result = MessageBox.Show (this, "Are you sure you want to close?", MessageBoxButtons.YesNo);
if (result == DialogResult.No) e.Cancel = true;
*/
}