private void Error_FormClosing(object sender, FormClosingEventArgs e) { // As there has been an error, blow away the rest of the app reasonably tidily Environment.Exit(1); }