Logging in to give credit to this solution. this batch file doesn't solve the root cause, only automates the killing of any offending process that is preventing the shutdown/restart . Good enough...