raising an exception if winrm connection fails