log the command that failed on ProtocolInvalidError so you can see which host has problems