private async void Current_Suspending(object sender, Windows.ApplicationModel.SuspendingEventArgs e)
{
if (this.DataContext != null)
{
this.DataContext = null;
SaveDevices();
var d = e.SuspendingOperation.GetDeferral();
await AllJoynDsbServiceManager.Current.ShutdownAsync();
d.Complete();
}
}