wrapped do_cmd_resp to automatically retry on timeouts