public TobiiEyeXPointService() { EyeXHost = new EyeXHost(); //Disconnect (deactivate) from the TET server on shutdown - otherwise the process can hang Application.Current.Exit += (sender, args) => { if (EyeXHost != null) { Log.Info("Disposing of the EyeXHost."); EyeXHost.Dispose(); } }; }