public void Dispose() { // Xamarin Insights can only be terminated if it has been started before, otherwise it // throws an exception if (Insights.IsInitialized) { Insights.Terminate(); } }