I have seen the shutdown problem as well. I was wondering however I have login problems as well same type of deal - just get the spinning wheel or “waiting” and it never logs in. My solution has been log in as local admin, remove avast and redeploy it. I was under the assumption since its very sporadic that it might be windows updates butting heads with Avast.