Fixed issue where winrm check did not finish execution when winrm check failed, and therby no proper error message was available.