static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var dispatcher = new CommandDispatcher(); try { Application.Run(dispatcher); } catch (Exception x) { dispatcher.Close(); MessageBox.Show(x.Message, "FastFingers has encountered a critical error.", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly); } }