int failsafe_command(string cmd)
send a command and require an ok response (200 series). throws an error if the command result was not success.