public Result OnShutdown(UIControlledApplication application) { try { //TODO: add you code below. return Result.Succeeded; } catch (Exception ex) { MessageBox.Show(ex.ToString()); return Result.Failed; } }