remove Debug.Fail if DTE.GetActiveDocument() returns None, because it can normally do this when VS is closing